|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocalDecl
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, exceptions, exceptions, 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 |
|---|
LocalDecl flags(Flags flags)
LocalDecl type(TypeNode type)
LocalDecl name(java.lang.String name)
Expr init()
LocalDecl init(Expr init)
LocalDecl localInstance(LocalInstance li)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||