|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.ast.Node_c
polyglot.ast.PackageNode_c
public class PackageNode_c
A PackageNode is the syntactic representation of a
Java package within the abstract syntax tree.
| Field Summary | |
|---|---|
protected Package |
package_
|
| Fields inherited from class polyglot.ast.Node_c |
|---|
del, error, ext, position |
| Constructor Summary | |
|---|---|
PackageNode_c(Position pos,
Package package_)
|
|
| Method Summary | |
|---|---|
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. |
boolean |
isDisambiguated()
|
Package |
package_()
Get the package. |
PackageNode |
package_(Package package_)
Set the package. |
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
Write the package name to an output file. |
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. |
| Methods inherited from class polyglot.ast.Node_c |
|---|
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, enterChildScope, enterScope, error, error, exceptionCheck, exceptionCheckEnter, ext, ext, ext, ext, init, isTypeChecked, node, position, position, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitChildren, visitEdge, visitList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Package package_
| Constructor Detail |
|---|
public PackageNode_c(Position pos,
Package package_)
| Method Detail |
|---|
public boolean isDisambiguated()
isDisambiguated in interface NodeisDisambiguated in class Node_cpublic Qualifier qualifier()
qualifier in interface QualifierNodepublic Package package_()
package_ in interface PackageNodepublic PackageNode package_(Package package_)
package_ in interface PackageNode
public void prettyPrint(CodeWriter w,
PrettyPrinter tr)
prettyPrint in interface NodeOpsprettyPrint in class Node_cw - The code writer to which to write.tr - The pretty printer. This is not a visitor.
public void translate(CodeWriter w,
Translator tr)
Node_cCodeWriter.
translate in interface NodeOpstranslate in class Node_cw - The code writer to which to write.tr - The translation pass. This is not a visitor.public java.lang.String toString()
toString in class Node_cpublic Node copy(NodeFactory nf)
NodeOps
copy in interface NodeOpscopy in class Node_c
public Node copy(ExtensionInfo extInfo)
throws SemanticException
NodeOps
copy in interface NodeOpscopy in class Node_cSemanticException - If the type information cannot be copied.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||