|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldDecl
A FieldDecl
is an immutable representation of the declaration
of a field of a class.
Method Summary | |
---|---|
Type |
declType()
Get the type object for the declaration's type. |
FieldInstance |
fieldInstance()
Get the type object for the field we are declaring. |
FieldDecl |
fieldInstance(FieldInstance fi)
Set the type object for the field we are declaring. |
Flags |
flags()
Get the declaration's flags. |
FieldDecl |
flags(Flags flags)
Set the declaration's flags. |
Expr |
init()
Get the declaration's initializer, or null. |
FieldDecl |
init(Expr init)
Set the declaration's initializer. |
InitializerInstance |
initializerInstance()
Get the type object for the initializer expression, or null. |
FieldDecl |
initializerInstance(InitializerInstance fi)
Set the type object for the initializer expression. |
java.lang.String |
name()
Get the declaration's name. |
FieldDecl |
name(java.lang.String name)
Set the declaration's name. |
TypeNode |
type()
Get the declaration's type. |
FieldDecl |
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 |
Method Detail |
---|
Type declType()
Flags flags()
FieldDecl flags(Flags flags)
TypeNode type()
FieldDecl type(TypeNode type)
java.lang.String name()
FieldDecl name(java.lang.String name)
Expr init()
FieldDecl init(Expr init)
FieldInstance fieldInstance()
FieldDecl fieldInstance(FieldInstance fi)
InitializerInstance initializerInstance()
{ }
or static { }).
FieldDecl initializerInstance(InitializerInstance fi)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |