public interface IClassFile extends ITypeRoot
IJavaScriptElement.isStructureKnown
to determine whether this is the
case.
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.CLASS_FILE, EXPORT_CONTAINER, EXPORT_DECLARATION, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVASCRIPT_MODEL, JAVASCRIPT_PROJECT, JAVASCRIPT_UNIT, LOCAL_VARIABLE, METHOD, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns the bytes contained in this file.
|
IType |
getType()
Returns the first type contained in this file.
|
IType[] |
getTypes() |
boolean |
isClass() |
findPrimaryType, getElementAt, getWorkingCopy
exists, getAncestor, getAttachedJavadoc, getCommonSuperType, getCorrespondingResource, getDisplayName, getElementName, getElementType, getHandleIdentifier, getHostPath, getJavaScriptModel, getJavaScriptProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown, isVirtual
newNameLookup, newNameLookup, newSearchableNameEnvironment, newSearchableNameEnvironment
getChildren, hasChildren
close, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, save
exists, getSource, getSourceRange
codeComplete, codeComplete, codeSelect, codeSelect
getField, getFields, getFunction, getFunctions, getType
byte[] getBytes() throws JavaScriptModelException
JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourceIType getType()
IType[] getTypes() throws JavaScriptModelException
JavaScriptModelException
boolean isClass() throws JavaScriptModelException
JavaScriptModelException
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.