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