Class JImportDecl
- java.lang.Object
-
- com.inductiveautomation.snap.javatree.JNode
-
- com.inductiveautomation.snap.javatree.JImportDecl
-
public class JImportDecl extends JNode
A Java part for import declaration.
-
-
Constructor Summary
Constructors Constructor Description JImportDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JExprgetIdentifier()Returns the identifier.protected java.lang.StringgetNameImpl()Resolves the name from identifier, if available.booleanisInclusive()Returns whether import is inclusive.booleanisStatic()Returns whether import is static.voidsetIdentifier(JExpr anId)Sets the identifier.voidsetInclusive(boolean aValue)Sets whether import is inclusive.voidsetStatic(boolean aValue)Sets whether import is static.-
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassNameImpl, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
-
-
-
Method Detail
-
isStatic
public boolean isStatic()
Returns whether import is static.
-
setStatic
public void setStatic(boolean aValue)
Sets whether import is static.
-
isInclusive
public boolean isInclusive()
Returns whether import is inclusive.
-
setInclusive
public void setInclusive(boolean aValue)
Sets whether import is inclusive.
-
getIdentifier
public JExpr getIdentifier()
Returns the identifier.
-
setIdentifier
public void setIdentifier(JExpr anId)
Sets the identifier.
-
getNameImpl
protected java.lang.String getNameImpl()
Resolves the name from identifier, if available.- Overrides:
getNameImplin classJNode
-
-