|
||||||||||
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 or a var declared at the file scope.
This interface is not intended to be implemented by clients.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary |
---|
Fields inherited from interface org.eclipse.wst.jsdt.core.IJavaScriptElement |
---|
CLASS_FILE, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVASCRIPT_MODEL, JAVASCRIPT_PROJECT, JAVASCRIPT_UNIT, 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. |
java.lang.String |
getTypeSignature()
Returns the type signature of this field. |
boolean |
isEnumConstant()
|
boolean |
isResolved()
Returns whether this field represents a resolved field. |
Methods inherited from interface org.eclipse.wst.jsdt.core.IMember |
---|
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getFlags, getJavaScriptUnit, getJSdocRange, getNameRange, getOccurrenceCount, getType, getTypeRoot, isBinary |
Methods inherited from interface org.eclipse.wst.jsdt.core.IJavaScriptElement |
---|
exists, getAncestor, getAttachedJavadoc, getCommonSuperType, getCorrespondingResource, getDisplayName, getElementType, getHandleIdentifier, getHostPath, getJavaScriptModel, getJavaScriptProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown, isVirtual |
Methods inherited from interface org.eclipse.wst.jsdt.core.ILookupScope |
---|
newNameLookup, newNameLookup, newSearchableNameEnvironment, newSearchableNameEnvironment |
Methods inherited from interface org.eclipse.wst.jsdt.core.ISourceReference |
---|
exists, getSource, getSourceRange |
Methods inherited from interface org.eclipse.wst.jsdt.core.ISourceManipulation |
---|
copy, delete, move, rename |
Methods inherited from interface org.eclipse.wst.jsdt.core.IParent |
---|
getChildren, hasChildren |
Method Detail |
---|
java.lang.Object getConstant() throws JavaScriptModelException
null
if this field has none.
null
if this field has none.
JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourcejava.lang.String getElementName()
getElementName
in interface IJavaScriptElement
java.lang.String getKey()
IBinding.getKey()
,
BindingKey
java.lang.String getTypeSignature() throws JavaScriptModelException
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.
JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourceSignature
boolean isEnumConstant() throws JavaScriptModelException
JavaScriptModelException
boolean isResolved()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |