public interface FieldDecl extends ClassMember, VarInit, CodeNode
FieldDecl
is an immutable representation of the declaration
of a field of a class.Term.Instance
Modifier and Type | Method and Description |
---|---|
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.
|
memberInstance
constantValueSet, varInstance
codeBody, codeInstance
exceptions, exceptions, reachable, reachable
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
Type declType()
Flags flags()
TypeNode type()
Id id()
java.lang.String name()
FieldDecl name(java.lang.String name)
Expr init()
FieldInstance fieldInstance()
FieldDecl fieldInstance(FieldInstance fi)
InitializerInstance initializerInstance()
{ }
or static { }
).FieldDecl initializerInstance(InitializerInstance fi)