|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IField
Represents a field declared in a type.
| Field Summary |
|---|
| Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
|---|
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER |
| Method Summary | |
|---|---|
java.lang.Object |
getConstant()
Returns the constant value associated with this field or null if this field has none. |
java.lang.String |
getElementName()
Returns the simple name of this field. |
java.lang.String |
getKey()
Returns the binding key for this field only if the given field is resolved. |
java.lang.String |
getTypeSignature()
Returns the type signature of this field. |
boolean |
isEnumConstant()
Returns whether this field represents an enum constant. |
boolean |
isResolved()
Returns whether this field represents a resolved field. |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IMember |
|---|
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinary |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
|---|
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference |
|---|
exists, getNameRange, getSource, getSourceRange |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceManipulation |
|---|
copy, delete, move, rename |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent |
|---|
getChildren, hasChildren |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IAnnotatable |
|---|
getAnnotation, getAnnotations |
| Method Detail |
|---|
java.lang.Object getConstant()
throws JavaModelException
null if this field has none. To have a constant value, the field needs to be
final and initialized with a compile-time constant expression.
For types from source, this currently only works if the field initializer is a literal (returns
null for more complex constant expressions).
For primitive types, returns the boxed value.
null if not available
JavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourcejava.lang.String getElementName()
getElementName in interface IJavaElementjava.lang.String getKey()
resolved.
A binding key is a key that uniquely identifies this field. It allows access to generic info
for parameterized fields.
If the given field is not resolved, the returned key is simply the java element's key.
IBinding.getKey(),
BindingKey,
isResolved()
java.lang.String getTypeSignature()
throws JavaModelException
The type signature may be either unresolved (for source types)
or resolved (for binary types), and either basic (for basic types)
or rich (for parameterized types). See Signature for details.
JavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourceSignature
boolean isEnumConstant()
throws JavaModelException
JavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourceboolean isResolved()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||