jltools.ext.jl.ast
Class PackageNode_c

java.lang.Object
  |
  +--jltools.ext.jl.ast.Node_c
        |
        +--jltools.ext.jl.ast.PackageNode_c
All Implemented Interfaces:
java.lang.Cloneable, Copy, Node, PackageNode, Prefix, QualifierNode, java.io.Serializable

public class PackageNode_c
extends Node_c
implements PackageNode

A PackageNode is the syntactic representation of a Java package within the abstract syntax tree.

See Also:
Serialized Form

Inner classes inherited from class jltools.ext.jl.ast.Node_c
Node_c.StringCodeWriter
 
Field Summary
protected  Package package_
           
 
Fields inherited from class jltools.ext.jl.ast.Node_c
ext, position
 
Constructor Summary
PackageNode_c(Ext ext, Position pos, Package package_)
           
 
Method Summary
 Package package_()
          Get the package.
 PackageNode package_(Package package_)
          Set the package.
 Qualifier qualifier()
          Get the package as a qualifier.
 java.lang.String toString()
           
 void translate_(CodeWriter w, Translator tr)
          Write the package name to an output file.
 
Methods inherited from class jltools.ext.jl.ast.Node_c
buildTypes_, buildTypes, buildTypesOverride_, buildTypesOverride, copy, disambiguate_, disambiguate, disambiguateOverride_, disambiguateOverride, disambiguateTypes_, disambiguateTypes, disambiguateTypesOverride_, disambiguateTypesOverride, dump, enterScope, exceptionCheck_, exceptionCheck, exceptionCheckOverride_, exceptionCheckOverride, ext, ext, foldConstants_, foldConstants, foldConstantsOverride_, foldConstantsOverride, leaveScope, position, position, reconstructTypes_, reconstructTypes, translate, translateBlock, translateSubstmt, typeCheck_, typeCheck, typeCheckOverride_, typeCheckOverride, visit, visitChildren, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jltools.ast.Node
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, typeCheck_, typeCheckOverride_, visit, visitChildren
 

Field Detail

package_

protected Package package_
Constructor Detail

PackageNode_c

public PackageNode_c(Ext ext,
                     Position pos,
                     Package package_)
Method Detail

qualifier

public Qualifier qualifier()
Get the package as a qualifier.
Specified by:
qualifier in interface QualifierNode

package_

public Package package_()
Get the package.
Specified by:
package_ in interface PackageNode

package_

public PackageNode package_(Package package_)
Set the package.
Specified by:
package_ in interface PackageNode

translate_

public void translate_(CodeWriter w,
                       Translator tr)
Write the package name to an output file.
Specified by:
translate_ in interface Node
Overrides:
translate_ in class Node_c
Following copied from interface: jltools.ast.Node
Parameters:
w - The code writer to which to write.
tr - The translation pass. This is not a visitor.

toString

public java.lang.String toString()
Overrides:
toString in class Node_c