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 JExprgetIdentifier()Returns the package name identifier.intgetModifiers()Returns the modifiers.protected java.lang.StringgetNameImpl()Resolves the package name from name identifier, if available.voidsetIdentifier(JExpr anId)Sets the package name identifier.voidsetModifiers(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:
getNameImplin classJNode
-
-