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.


Method Summary
 Flags flags()
          Get the initializer's flags.
 Initializer flags(Flags flags)
          Set the initializer's flags.
 InitializerInstance initializerInstance()
          Get the initializer's type object.
 Initializer initializerInstance(InitializerInstance ii)
          Set the initializer's type object.
 
Methods inherited from interface polyglot.ast.CodeDecl
body, body, codeInstance
 
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

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.