|
|||||||||
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.
Field Summary |
---|
Fields inherited from interface polyglot.ast.Term |
---|
ENTRY, EXIT |
Fields inherited from interface polyglot.ast.Term |
---|
ENTRY, EXIT |
Method Summary | |
---|---|
boolean |
constantValueSet()
Whether the initializer has been determined to be constant or not. |
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. |
Id |
id()
Get the declaration's name. |
FieldDecl |
id(Id name)
Set the declaration's name. |
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.ClassMember |
---|
memberInstance |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable |
Methods inherited from interface polyglot.ast.Node |
---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
Methods inherited from interface polyglot.ast.VarInit |
---|
varInstance |
Methods inherited from interface polyglot.ast.CodeNode |
---|
codeBody, codeInstance |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable |
Methods inherited from interface polyglot.ast.Node |
---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
Method Detail |
---|
Type declType()
Flags flags()
FieldDecl flags(Flags flags)
TypeNode type()
FieldDecl type(TypeNode type)
Id id()
FieldDecl id(Id name)
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)
boolean constantValueSet()
VarInit
constantValueSet
in interface VarInit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |