| java.lang.Object sun.tools.java.ClassDeclaration
ClassDeclaration | final public class ClassDeclaration implements Constants(Code) | | This class represents an Java class declaration. It refers
to either a binary or source definition.
ClassDefinitions are loaded on demand, this means that
class declarations are late bound. The definition of the
class is obtained in stages. The status field describes
the state of the class definition:
CS_UNDEFINED - the definition is not yet loaded
CS_UNDECIDED - a binary definition is loaded, but it is
still unclear if the source definition need to
be loaded
CS_BINARY - the binary class is loaded
CS_PARSED - the class is loaded from the source file, the
type information is available, but the class has
not yet been compiled.
CS_CHECKED - the class is loaded from the source file and has
been type-checked.
CS_COMPILED - the class has been type checked, compiled,
and written out.
CS_NOTFOUND - no class definition could be found
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
|
getClassDefinition | public ClassDefinition getClassDefinition()(Code) | | Get the definition of this class. Returns null if
the class is not yet defined.
|
getClassDefinition | public ClassDefinition getClassDefinition(Environment env) throws ClassNotFound(Code) | | Get the definition of this class, if the class is not
yet defined, load the definition. Loading a class may
throw various exceptions.
|
getClassDefinitionNoCheck | public ClassDefinition getClassDefinitionNoCheck(Environment env) throws ClassNotFound(Code) | | Get the definition of this class, if the class is not
yet defined, load the definition. Loading a class may
throw various exceptions. Perform no basicCheck() on this
class.
|
getStatus | public int getStatus()(Code) | | Get the status of the class
|
getType | public Type getType()(Code) | | Get the type of the class
|
isDefined | public boolean isDefined()(Code) | | Check if the class is defined
|
setDefinition | public void setDefinition(ClassDefinition definition, int status)(Code) | | Set the class definition
|
|
|