Class JPackageDecl
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JPackageDecl
A Java part for package declaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the package name identifier.int
Returns the modifiers.protected String
Resolves the package name from name identifier, if available.void
setIdentifier
(JExpr anId) Sets the package name identifier.void
setModifiers
(int aValue) Sets the modifiers.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
-
JPackageDecl
public JPackageDecl()
-
-
Method Details
-
getIdentifier
Returns the package name identifier. -
setIdentifier
Sets the package name identifier. -
getModifiers
public int getModifiers()Returns the modifiers. -
setModifiers
public void setModifiers(int aValue) Sets the modifiers. -
getNameImpl
Resolves the package name from name identifier, if available.- Overrides:
getNameImpl
in classJNode
-