public class PackageNode_c extends Node_c implements PackageNode
PackageNode
is the syntactic representation of a
Java package within the abstract syntax tree.Constructor and Description |
---|
PackageNode_c(Position pos,
Package package_) |
PackageNode_c(Position pos,
Package package_,
Ext ext) |
Modifier and Type | Method and Description |
---|---|
Node |
copy(ExtensionInfo extInfo)
Produce a copy of this node using the given ExtensionInfo.
|
Node |
copy(NodeFactory nf)
Produce a copy of this node using the given NodeFactory.
|
Node |
extRewrite(ExtensionRewriter rw)
Rewrite the AST for the compilation in this language.
|
boolean |
isDisambiguated() |
Package |
package_()
The package type object.
|
protected <N extends PackageNode_c> |
package_(N n,
Package package_) |
PackageNode |
package_(Package package_)
Set the package type object.
|
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
Pretty-print the AST using the given
CodeWriter . |
Qualifier |
qualifier()
Get the package as a qualifier.
|
java.lang.String |
toString() |
void |
translate(CodeWriter w,
Translator tr)
Translate the AST using the given
CodeWriter . |
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copyIfNeeded, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, dump, enterChildScope, enterScope, error, error, error, exceptionCheck, exceptionCheckEnter, ext, ext, ext, ext, extRewriteEnter, isTypeChecked, lang, position, position, position, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitChildren, visitEdge, visitList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
del, del, dump, error, error, ext, ext, ext, ext, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
protected Package package_
public boolean isDisambiguated()
isDisambiguated
in interface Node
isDisambiguated
in class Node_c
public Qualifier qualifier()
qualifier
in interface QualifierNode
public Package package_()
PackageNode
package_
in interface PackageNode
public PackageNode package_(Package package_)
PackageNode
package_
in interface PackageNode
protected <N extends PackageNode_c> N package_(N n, Package package_)
public void prettyPrint(CodeWriter w, PrettyPrinter tr)
Node_c
CodeWriter
.prettyPrint
in interface NodeOps
prettyPrint
in class Node_c
w
- The code writer to which to write.tr
- The pretty printer. This is not a visitor.public void translate(CodeWriter w, Translator tr)
NodeOps
CodeWriter
.public Node extRewrite(ExtensionRewriter rw) throws SemanticException
NodeOps
leave()
method of the
visitor. The method should perform work that should be done
after visiting the children of the node. The method may return
this
or a new copy of the node which will be
installed as a child of the node's parent.extRewrite
in interface NodeOps
extRewrite
in class Node_c
rw
- The visitor.SemanticException
public Node copy(NodeFactory nf)
NodeOps
public Node copy(ExtensionInfo extInfo) throws SemanticException
NodeOps
copy
in interface NodeOps
copy
in class Node_c
SemanticException
- If the type information cannot be copied.