Class JImportDecl
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JImportDecl
A Java part for import declaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier.protected String
Resolves the name from identifier, if available.boolean
Returns whether import is inclusive.boolean
isStatic()
Returns whether import is static.void
setIdentifier
(JExpr anId) Sets the identifier.void
setInclusive
(boolean aValue) Sets whether import is inclusive.void
setStatic
(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
-
Constructor Details
-
JImportDecl
public JImportDecl()
-
-
Method Details
-
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
Returns the identifier. -
setIdentifier
Sets the identifier. -
getNameImpl
Resolves the name from identifier, if available.- Overrides:
getNameImpl
in classJNode
-