|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.eval.CodeSnippetSkeleton
public class CodeSnippetSkeleton
The skeleton of the class 'org.eclipse.jdt.internal.eval.target.CodeSnippet' used at compile time. Note that the method run() is declared to throw Throwable so that the user can write a code snipet that throws checked exceptio without having to catch those.
| Nested Class Summary | |
|---|---|
static class |
CodeSnippetSkeleton.BinaryMethodSkeleton
|
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IBinaryType |
|---|
NoField, NoInterface, NoMethod, NoNestedType |
| Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent |
|---|
JAR_FILE_ENTRY_SEPARATOR |
| Fields inherited from interface org.eclipse.jdt.internal.eval.EvaluationConstants |
|---|
CODE_SNIPPET_CLASS_NAME_PREFIX, CODE_SNIPPET_NAME, DELEGATE_THIS, GLOBAL_VARS_CLASS_NAME_PREFIX, LOCAL_VAR_PREFIX, PACKAGE_NAME, RESULT_TYPE_FIELD, RESULT_VALUE_FIELD, ROOT_CLASS_NAME, ROOT_COMPOUND_NAME, ROOT_FULL_CLASS_NAME, RUN_METHOD, SETRESULT_ARGUMENTS, SETRESULT_SELECTOR |
| Constructor Summary | |
|---|---|
CodeSnippetSkeleton()
CodeSnippetSkeleton constructor comment. |
|
| Method Summary | |
|---|---|
IBinaryAnnotation[] |
getAnnotations()
Answer the runtime visible and invisible annotations for this type or null if none. |
char[] |
getEnclosingTypeName()
Answer the resolved name of the enclosing type in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the receiver is a top level type. |
IBinaryField[] |
getFields()
Answer the receiver's fields or null if the array is empty. |
char[] |
getFileName()
Answer the file name which defines the type. |
char[] |
getGenericSignature()
Answer the receiver's signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 VM spec 3rd edition. |
char[][] |
getInterfaceNames()
Answer the resolved names of the receiver's interfaces in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the array is empty. |
java.lang.String |
getJavadocContents()
|
java.lang.String |
getJavadocContents(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.String defaultEncoding)
|
IBinaryNestedType[] |
getMemberTypes()
Answer the receiver's nested types or null if the array is empty. |
IBinaryMethod[] |
getMethods()
Answer the receiver's methods or null if the array is empty. |
char[][][] |
getMissingTypeNames()
Answer the list of missing type names which were referenced from the problem classfile. |
int |
getModifiers()
Answer an int whose bits are set according the access constants defined by the VM spec. |
char[] |
getName()
Answer the resolved name of the type in the class file format as specified in section 4.2 of the Java 2 VM spec. |
char[] |
getSourceName()
Answer the simple name of the type in the class file. |
char[] |
getSuperclassName()
Answer the resolved name of the receiver's superclass in the class file format as specified in section 4.2 of the Java 2 VM spec or null if it does not have one. |
long |
getTagBits()
Answer the tagbits set according to the bits for annotations. |
java.lang.String |
getURLContents(java.lang.String docUrlValue,
java.lang.String defaultEncoding)
|
boolean |
isAnonymous()
Answer true if the receiver is an anonymous class. |
boolean |
isBinaryType()
Answer whether the receiver contains the resolved binary form or the unresolved source form of the type. |
boolean |
isLocal()
Answer true if the receiver is a local class. |
boolean |
isMember()
Answer true if the receiver is a member class. |
char[] |
sourceFileName()
Answer the source file attribute, or null if none. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeSnippetSkeleton()
| Method Detail |
|---|
public IBinaryAnnotation[] getAnnotations()
IBinaryType
getAnnotations in interface IBinaryTypepublic char[] getEnclosingTypeName()
IBinaryType
getEnclosingTypeName in interface IBinaryTypepublic IBinaryField[] getFields()
IBinaryType
getFields in interface IBinaryTypepublic char[] getFileName()
IDependent
getFileName in interface IDependentIDependent.getFileName()public char[] getGenericSignature()
IBinaryType
getGenericSignature in interface IBinaryTypepublic char[][] getInterfaceNames()
IBinaryType
getInterfaceNames in interface IBinaryTypepublic java.lang.String getJavadocContents()
public java.lang.String getJavadocContents(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.String defaultEncoding)
throws JavaModelException
JavaModelExceptionpublic IBinaryNestedType[] getMemberTypes()
IBinaryType
getMemberTypes in interface IBinaryTypepublic IBinaryMethod[] getMethods()
IBinaryType
getMethods in interface IBinaryTypepublic int getModifiers()
IGenericType
getModifiers in interface IGenericTypepublic char[][][] getMissingTypeNames()
IBinaryType
getMissingTypeNames in interface IBinaryTypepublic char[] getName()
IBinaryType
getName in interface IBinaryTypepublic char[] getSourceName()
IBinaryType
getSourceName in interface IBinaryTypepublic char[] getSuperclassName()
IBinaryType
getSuperclassName in interface IBinaryTypepublic long getTagBits()
IBinaryType
getTagBits in interface IBinaryType
public java.lang.String getURLContents(java.lang.String docUrlValue,
java.lang.String defaultEncoding)
public boolean isAnonymous()
IBinaryType
isAnonymous in interface IBinaryTypepublic boolean isBinaryType()
IGenericType
isBinaryType in interface IGenericTypepublic boolean isLocal()
IBinaryType
isLocal in interface IBinaryTypepublic boolean isMember()
IBinaryType
isMember in interface IBinaryTypepublic char[] sourceFileName()
IBinaryType
sourceFileName in interface IBinaryType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||