|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The root of the java type object model.
Method Summary | |
---|---|
void |
accept(JVisitor visitor)
Accepts the given visitor. |
java.lang.Object |
getArtifact()
This is not something you want to mess with. |
JElement |
getParent()
Returns the parent of this abstraction, or null if this annotation represents a root abstraction (i.e. |
java.lang.String |
getQualifiedName()
Returns a qualified name for this abstraction. |
java.lang.String |
getSimpleName()
Returns a simple name of this abstraction. |
JSourcePosition |
getSourcePosition()
Returns an object describing the source file position of this elements, or null if the position is unknown on not applicable. |
boolean |
isSourceAvailable()
Returns true if this JElement was parsed from a source file. |
java.lang.String |
toString()
Returns the same String as getQualifiedName(). |
Method Detail |
public JElement getParent()
Returns the parent of this abstraction, or null if this annotation represents a root abstraction (i.e. a JPackage). The JElement hierarchy looks like this:
JPackage JClass JConstructor JField JMethod JParameter JProperty JClass (inner class)...
Additionally, any of the abstractions above may in turn have child JAnnotations, which may themselves have child JAnnotations.
public java.lang.String getSimpleName()
Returns a simple name of this abstraction. The exact format of the name depends on the particular abstraction (see javadoc). Please refer to the JAM package documentation for more details on naming conventions.
public java.lang.String getQualifiedName()
Returns a qualified name for this abstraction. The exact format of this name depends on the particular abstraction. Please refer to the documentation for each JElement subclass for a detailed description of the qualified name formats.
public JSourcePosition getSourcePosition()
public void accept(JVisitor visitor)
Accepts the given visitor.
public java.lang.Object getArtifact()
This is not something you want to mess with. It's here only for the benefit of some JAM implementations which need a handle back to the actual implementation-specific object which is being proxied by this JElement.
public boolean isSourceAvailable()
public java.lang.String toString()
Returns the same String as getQualifiedName().
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |