polyglot.ext.carray.ast
Class ConstArrayTypeNode_c

java.lang.Object
  extended bypolyglot.ext.jl.ast.Node_c
      extended bypolyglot.ext.jl.ast.TypeNode_c
          extended bypolyglot.ext.jl.ast.ArrayTypeNode_c
              extended bypolyglot.ext.carray.ast.ConstArrayTypeNode_c
All Implemented Interfaces:
ArrayTypeNode, java.lang.Cloneable, ConstArrayTypeNode, Copy, JL, Node, NodeOps, Prefix, QualifierNode, Receiver, Typed, TypeNode

public class ConstArrayTypeNode_c
extends ArrayTypeNode_c
implements ConstArrayTypeNode

A ConstArrayTypeNode is a type node for a non-canonical const array type.


Field Summary
 
Fields inherited from class polyglot.ext.jl.ast.ArrayTypeNode_c
base
 
Fields inherited from class polyglot.ext.jl.ast.TypeNode_c
type
 
Fields inherited from class polyglot.ext.jl.ast.Node_c
del, ext, position
 
Constructor Summary
ConstArrayTypeNode_c(Position pos, TypeNode base)
           
 
Method Summary
 Node buildTypes(TypeBuilder tb)
          Collects classes, methods, and fields from the AST rooted at this node and constructs type objects for these.
 Node disambiguate(AmbiguityRemover ar)
          Remove any remaining ambiguities from the AST.
 java.lang.String toString()
           
 
Methods inherited from class polyglot.ext.jl.ast.ArrayTypeNode_c
base, base, exceptionCheck, prettyPrint, reconstruct, translate, typeCheck, visitChildren
 
Methods inherited from class polyglot.ext.jl.ast.TypeNode_c
qualifier, type, type
 
Methods inherited from class polyglot.ext.jl.ast.Node_c
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguateEnter, disambiguateOverride, dump, enterScope, enterScope, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, print, printBlock, printSubStmt, throwTypes, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.ext.carray.ast.ConstArrayTypeNode
base, base
 
Methods inherited from interface polyglot.ast.TypeNode
type
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypesEnter, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.ast.Typed
type
 
Methods inherited from interface polyglot.ast.QualifierNode
qualifier
 

Constructor Detail

ConstArrayTypeNode_c

public ConstArrayTypeNode_c(Position pos,
                            TypeNode base)
Method Detail

buildTypes

public Node buildTypes(TypeBuilder tb)
                throws SemanticException
Description copied from interface: NodeOps
Collects classes, methods, and fields from the AST rooted at this node and constructs type objects for these. These type objects may be ambiguous. Inserts classes into the TypeSystem. This method is called by the 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.

Specified by:
buildTypes in interface NodeOps
Overrides:
buildTypes in class ArrayTypeNode_c
Throws:
SemanticException

disambiguate

public Node disambiguate(AmbiguityRemover ar)
                  throws SemanticException
Description copied from interface: NodeOps
Remove any remaining ambiguities from the AST. This method is called by the 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.

Specified by:
disambiguate in interface NodeOps
Overrides:
disambiguate in class ArrayTypeNode_c
Throws:
SemanticException

toString

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