public interface JavaElement extends Element
| Modifier and Type | Field and Description | 
|---|---|
static JavaElement[] | 
EMPTY_ARRAY  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getElementKind()  | 
JavaFile | 
getFile()  | 
int | 
getModifiers()  | 
JavaElement | 
getOwner()
Finds the owner of this JavaElement, which is the closest named
 ancestor found, such as a JavaClass, JavaMethod, JavaField, etc. 
 | 
SourceElement | 
getSourceElement()  | 
boolean | 
isDeprecated()  | 
boolean | 
isFinal()  | 
boolean | 
isHidden()  | 
default boolean | 
isMandated()
Determine if an element is mandated, meaning it's implictly declared
 as mandated by the Java language spec. 
 | 
boolean | 
isSourceElement()
Determine if this IS a SourceElement in which case this JavaElement
 can be cast to a SourceElement. 
 | 
boolean | 
isSynthetic()  | 
java.lang.String | 
printCompiledInfo()
Debugging function for printing out compiled information. 
 | 
static final JavaElement[] EMPTY_ARRAY
int getElementKind()
JavaFile getFile()
If a SourceFile is returned, then this element is declared in or otherwise comes in a SourceFile.
A non-null JavaFile may be returned that is not a SourceFile. For example, a JavaClass that came from a .class file definition will return such a JavaFile instance.
If null, then this element was created on-the-fly.
JavaElement getOwner()
boolean isSourceElement()
SourceElement getSourceElement()
int getModifiers()
boolean isFinal()
boolean isSynthetic()
default boolean isMandated()
boolean isHidden()
boolean isDeprecated()
java.lang.String printCompiledInfo()