|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jltools.ext.jl.ast.Node_c
|
+--jltools.ext.jl.ast.Formal_c
A Formal represents a formal parameter to a method
or constructor or to a catch block. It consists of a type and a variable
identifier.
| Inner classes inherited from class jltools.ext.jl.ast.Node_c |
Node_c.StringCodeWriter |
| Fields inherited from class jltools.ext.jl.ast.Node_c |
ext, position |
| Constructor Summary | |
Formal_c(Ext ext,
Position pos,
Flags flags,
TypeNode type,
java.lang.String name)
|
|
| Method Summary | |
Node |
buildTypes_(TypeBuilder tb)
Build type objects for the formal. |
Type |
declType()
Get the type of the formal. |
void |
dump(CodeWriter w)
Dump the AST node for debugging purposes. |
Flags |
flags()
Get the flags of the formal. |
Formal |
flags(Flags flags)
Set the flags of the formal. |
void |
leaveScope(Context c)
Adjust the environment on leaving the scope of the method. |
LocalInstance |
localInstance()
Get the local instance of the formal. |
Formal |
localInstance(LocalInstance li)
Set the local instance of the formal. |
java.lang.String |
name()
Get the name of the formal. |
Formal |
name(java.lang.String name)
Set the name of the formal. |
protected Formal_c |
reconstruct(TypeNode type)
Reconstruct the formal. |
Node |
reconstructTypes_(NodeFactory nf,
TypeSystem ts,
Context c)
This method can be called after a node is visited to ensure its type information is reconstructed. |
java.lang.String |
toString()
|
void |
translate_(CodeWriter w,
Translator tr)
Write the formal to an output file. |
TypeNode |
type()
Get the type node of the formal. |
Formal |
type(TypeNode type)
Set the type node of the formal. |
Node |
typeCheck_(TypeChecker tc)
Type check the formal. |
Node |
visitChildren(NodeVisitor v)
Visit the children of the formal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jltools.ast.Node |
buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, position, position, typeCheckOverride_, visit |
| Constructor Detail |
public Formal_c(Ext ext,
Position pos,
Flags flags,
TypeNode type,
java.lang.String name)
| Method Detail |
public Type declType()
declType in interface Formalpublic Flags flags()
flags in interface Formalpublic Formal flags(Flags flags)
flags in interface Formalpublic TypeNode type()
type in interface Formalpublic Formal type(TypeNode type)
type in interface Formalpublic java.lang.String name()
name in interface Formalpublic Formal name(java.lang.String name)
name in interface Formalpublic LocalInstance localInstance()
localInstance in interface Formalpublic Formal localInstance(LocalInstance li)
localInstance in interface Formalprotected Formal_c reconstruct(TypeNode type)
public Node visitChildren(NodeVisitor v)
visitChildren in interface NodevisitChildren in class Node_cpublic void leaveScope(Context c)
NodeleaveScope in interface NodeleaveScope in class Node_c
public void translate_(CodeWriter w,
Translator tr)
translate_ in interface Nodetranslate_ in class Node_cjltools.ast.Nodew - The code writer to which to write.tr - The translation pass. This is not a visitor.
public Node buildTypes_(TypeBuilder tb)
throws SemanticException
buildTypes_ in interface NodebuildTypes_ in class Node_c
public Node typeCheck_(TypeChecker tc)
throws SemanticException
typeCheck_ in interface NodetypeCheck_ in class Node_cpublic void dump(CodeWriter w)
Nodedump in interface Nodedump in class Node_cpublic java.lang.String toString()
toString in class Node_c
public Node reconstructTypes_(NodeFactory nf,
TypeSystem ts,
Context c)
throws SemanticException
NodereconstructTypes_ in interface NodereconstructTypes_ in class Node_c
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||