|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A local variable declaration statement: a type, a name and an optional initializer.
Method Summary | |
LocalDecl |
flags(Flags flags)
Set the declaration's flags. |
Expr |
init()
Get the declaration's initializer expression, or null. |
LocalDecl |
init(Expr init)
Set the declaration's initializer expression. |
LocalDecl |
localInstance(LocalInstance li)
Set the type object for the local we are declaring. |
LocalDecl |
name(java.lang.String name)
Set the declaration's name. |
LocalDecl |
type(TypeNode type)
Set the declaration's type. |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
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, disambiguate, 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.VarDecl |
declType, flags, localInstance, name, type |
Method Detail |
public LocalDecl flags(Flags flags)
public LocalDecl type(TypeNode type)
public LocalDecl name(java.lang.String name)
public Expr init()
public LocalDecl init(Expr init)
public LocalDecl localInstance(LocalInstance li)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |