jltools.ext.jl.ast
Class AmbPrefix_c
java.lang.Object
|
+--jltools.ext.jl.ast.Node_c
|
+--jltools.ext.jl.ast.AmbPrefix_c
- All Implemented Interfaces:
- Ambiguous, AmbPrefix, java.lang.Cloneable, Copy, Node, Prefix, java.io.Serializable
- Direct Known Subclasses:
- AmbReceiver_c
- public class AmbPrefix_c
- extends Node_c
- implements AmbPrefix
An AmbPrefix
is an ambiguous AST node composed of dot-separated
list of identifiers that must resolve to a prefix.
- See Also:
- Serialized Form
Methods inherited from class jltools.ext.jl.ast.Node_c |
buildTypes_, buildTypes, buildTypesOverride_, buildTypesOverride, copy, disambiguate, disambiguateOverride_, disambiguateOverride, disambiguateTypes_, disambiguateTypes, disambiguateTypesOverride_, disambiguateTypesOverride, dump, enterScope, exceptionCheck, exceptionCheckOverride_, exceptionCheckOverride, ext, ext, foldConstants_, foldConstants, foldConstantsOverride_, foldConstantsOverride, leaveScope, position, position, reconstructTypes_, reconstructTypes, translate, translateBlock, translateSubstmt, typeCheck, typeCheckOverride_, typeCheckOverride, visit, 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, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, typeCheckOverride_, visit |
prefix
protected Prefix prefix
name
protected java.lang.String name
AmbPrefix_c
public AmbPrefix_c(Ext ext,
Position pos,
Prefix prefix,
java.lang.String name)
name
public java.lang.String name()
- Get the name of the prefix.
- Specified by:
name
in interface AmbPrefix
name
public AmbPrefix name(java.lang.String name)
- Set the name of the prefix.
prefix
public Prefix prefix()
- Get the prefix of the prefix.
- Specified by:
prefix
in interface AmbPrefix
prefix
public AmbPrefix prefix(Prefix prefix)
- Set the prefix of the prefix.
reconstruct
protected AmbPrefix_c reconstruct(Prefix prefix)
- Reconstruct the prefix.
visitChildren
public Node visitChildren(NodeVisitor v)
- Visit the children of the prefix.
- Specified by:
visitChildren
in interface Node
- Overrides:
visitChildren
in class Node_c
disambiguate_
public Node disambiguate_(AmbiguityRemover ar)
throws SemanticException
- Disambiguate the prefix.
- Specified by:
disambiguate_
in interface Node
- Overrides:
disambiguate_
in class Node_c
typeCheck_
public Node typeCheck_(TypeChecker tc)
throws SemanticException
- Type check the prefix.
- Specified by:
typeCheck_
in interface Node
- Overrides:
typeCheck_
in class Node_c
exceptionCheck_
public Node exceptionCheck_(ExceptionChecker ec)
throws SemanticException
- Check exceptions thrown by the prefix.
- Specified by:
exceptionCheck_
in interface Node
- Overrides:
exceptionCheck_
in class Node_c
translate_
public void translate_(CodeWriter w,
Translator tr)
- Write the prefix 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