polyglot.ast
Interface Initializer
- All Superinterfaces:
- ClassMember, java.lang.Cloneable, CodeDecl, Copy, JL, Node, NodeOps, Term
- All Known Implementing Classes:
- Initializer_c
public interface Initializer
- extends CodeDecl
An Initializer
is an immutable representation of an
initializer block in a Java class (which appears outside of any
method). Such a block is executed before the code for any of the
constructors. Such a block can optionally be static, in which case
it is executed when the class is loaded.
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 |
flags
Flags flags()
- Get the initializer's flags.
flags
Initializer flags(Flags flags)
- Set the initializer's flags.
initializerInstance
InitializerInstance initializerInstance()
- Get the initializer's type object. This field may not be valid until
after signature disambiguation.
initializerInstance
Initializer initializerInstance(InitializerInstance ii)
- Set the initializer's type object.