|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ext.jl.ast.Node_c polyglot.ext.jl.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.ext.jl.ast.Node_c |
---|
del, ext, position |
Constructor Summary | |
---|---|
PackageNode_c(Position pos,
Package package_)
|
Method Summary | |
---|---|
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.ext.jl.ast.Node_c |
---|
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypes, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, 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 Qualifier qualifier()
qualifier
in interface QualifierNode
public Package package_()
package_
in interface PackageNode
public PackageNode package_(Package package_)
package_
in interface PackageNode
public void prettyPrint(CodeWriter w, PrettyPrinter tr)
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)
Node_c
CodeWriter
.
translate
in interface NodeOps
translate
in class Node_c
w
- 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_c
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |