|
|||||||||
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.AmbPrefix_c
public class AmbPrefix_c
An AmbPrefix
is an ambiguous AST node composed of dot-separated
list of identifiers that must resolve to a prefix.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected Prefix |
prefix
|
Fields inherited from class polyglot.ext.jl.ast.Node_c |
---|
del, ext, position |
Constructor Summary | |
---|---|
AmbPrefix_c(Position pos,
Prefix prefix,
java.lang.String name)
|
Method Summary | |
---|---|
Node |
disambiguate(AmbiguityRemover ar)
Disambiguate the prefix. |
Node |
exceptionCheck(ExceptionChecker ec)
Check exceptions thrown by the prefix. |
java.lang.String |
name()
Get the name of the prefix. |
AmbPrefix |
name(java.lang.String name)
Set the name of the prefix. |
Prefix |
prefix()
Get the prefix of the prefix. |
AmbPrefix |
prefix(Prefix prefix)
Set the prefix of the prefix. |
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
Write the prefix to an output file. |
protected AmbPrefix_c |
reconstruct(Prefix prefix)
Reconstruct the prefix. |
java.lang.String |
toString()
|
void |
translate(CodeWriter w,
Translator tr)
Translate the AST using the given CodeWriter . |
Node |
typeCheck(TypeChecker tc)
Type check the prefix. |
Node |
visitChildren(NodeVisitor v)
Visit the children of the prefix. |
Methods inherited from class polyglot.ext.jl.ast.Node_c |
---|
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypes, 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.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, buildTypes, buildTypesEnter, disambiguateEnter, enterScope, enterScope, exceptionCheckEnter, throwTypes, typeCheckEnter |
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, buildTypes, buildTypesEnter, disambiguateEnter, enterScope, enterScope, exceptionCheckEnter, throwTypes, typeCheckEnter |
Field Detail |
---|
protected Prefix prefix
protected java.lang.String name
Constructor Detail |
---|
public AmbPrefix_c(Position pos, Prefix prefix, java.lang.String name)
Method Detail |
---|
public java.lang.String name()
name
in interface AmbPrefix
public AmbPrefix name(java.lang.String name)
public Prefix prefix()
prefix
in interface AmbPrefix
public AmbPrefix prefix(Prefix prefix)
protected AmbPrefix_c reconstruct(Prefix prefix)
public Node visitChildren(NodeVisitor v)
visitChildren
in interface NodeOps
visitChildren
in class Node_c
v
- The visitor that will traverse/rewrite the AST.
this
.public Node disambiguate(AmbiguityRemover ar) throws SemanticException
disambiguate
in interface NodeOps
disambiguate
in class Node_c
ar
- The visitor which disambiguates.
SemanticException
public Node typeCheck(TypeChecker tc) throws SemanticException
typeCheck
in interface NodeOps
typeCheck
in class Node_c
tc
- The type checking visitor.
SemanticException
public Node exceptionCheck(ExceptionChecker ec) throws SemanticException
exceptionCheck
in interface NodeOps
exceptionCheck
in class Node_c
ec
- The visitor.
SemanticException
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 |