Klasse CodeSnippetSkeleton
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.eval.CodeSnippetSkeleton
- Alle implementierten Schnittstellen:
IBinaryType,IDependent,IGenericType,EvaluationConstants
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.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.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_SELECTORVon Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryType
NoField, NoInterface, NoMethod, NoNestedTypeVon Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungenrichWithExternalAnnotationsFor(ITypeAnnotationWalker walker, Object member, LookupEnvironment environment) Answer a type annotation walker that takes into consideration also external annotations.Answer the runtime visible and invisible annotations for this type or null if none.char[]Answer the enclosing method (including method selector and method descriptor), or null if none.char[]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.Answer whether a provider for external annotations is associated with this binary type.Answer the receiver's fields or null if the array is empty.char[]Answer the file name which defines the type.char[]Answer the receiver's ClassSignature, which describes the type parameters, super class, and super interfaces as specified in section "4.7.9.1 Signatures" of the Java SE 8 VM spec.char[][]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.getJavadocContents(org.eclipse.core.runtime.IProgressMonitor monitor, String defaultEncoding) Answer the receiver's nested types or null if the array is empty.Answer the receiver's methods or null if the array is empty.char[][][]Answer the list of missing type names which were referenced from the problem classfile.intAnswer an int whose bits are set according the access constants defined by the VM spec.char[]Answer the module to which this type belongs.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.Answer the receiver's record components or null if the array is empty.char[]Answer the simple name of the type in the class file.char[]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.longAnswer the tagbits set according to the bits for annotations.Answer the runtime visible and invisible type annotations for this type or null if none.getURLContents(String docUrlValue, String defaultEncoding) booleanAnswer true if the receiver is an anonymous class.booleanAnswer whether the receiver contains the resolved binary form or the unresolved source form of the type.booleanisLocal()Answer true if the receiver is a local class.booleanisMember()Answer true if the receiver is a member class.booleanisRecord()Answer true if the receiver is a record.char[]Answer the source file attribute, or null if none.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryType
getPermittedSubtypeNames
-
Konstruktordetails
-
CodeSnippetSkeleton
public CodeSnippetSkeleton()CodeSnippetSkeleton constructor comment.
-
-
Methodendetails
-
getAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the runtime visible and invisible annotations for this type or null if none.- Angegeben von:
getAnnotationsin SchnittstelleIBinaryType
-
getTypeAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the runtime visible and invisible type annotations for this type or null if none.- Angegeben von:
getTypeAnnotationsin SchnittstelleIBinaryType
-
getEnclosingMethod
public char[] getEnclosingMethod()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the enclosing method (including method selector and method descriptor), or null if none. For example, "foo()Ljava/lang/Object;V"- Angegeben von:
getEnclosingMethodin SchnittstelleIBinaryType
-
getEnclosingTypeName
public char[] getEnclosingTypeName()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer 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. For example, java.lang.String is java/lang/String.- Angegeben von:
getEnclosingTypeNamein SchnittstelleIBinaryType
-
getFields
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the receiver's fields or null if the array is empty.- Angegeben von:
getFieldsin SchnittstelleIBinaryType
-
getFileName
public char[] getFileName()Beschreibung aus Schnittstelle kopiert:IDependentAnswer the file name which defines the type. The path part (optional) must be separated from the actual file proper name by a separator suitable for the type (java.io.File.separator for example), e.g. "c:\\source\\com\\p\\X.java" or "/com/p/Y.java". The path to the zip or jar file (optional) must be separated from the actual path part by JAR_FILE_ENTRY_SEPARATOR, e.g. "c:\\lib\\some.jar|/com/p/X.class" or "/lib/some.zip|/com/q/Y.class". The proper file name includes the suffix extension (e.g. ".java") e.g. "c:/org/aspectj/org/eclipse/jdt/internal/compileri/env/IDependent.java" Return null if no file defines the type.- Angegeben von:
getFileNamein SchnittstelleIDependent- Siehe auch:
-
getGenericSignature
public char[] getGenericSignature()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the receiver's ClassSignature, which describes the type parameters, super class, and super interfaces as specified in section "4.7.9.1 Signatures" of the Java SE 8 VM spec. Returns null if none.- Angegeben von:
getGenericSignaturein SchnittstelleIBinaryType- Gibt zurück:
- the receiver's signature, null if none
-
getInterfaceNames
public char[][] getInterfaceNames()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer 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. For example, java.lang.String is java/lang/String.- Angegeben von:
getInterfaceNamesin SchnittstelleIBinaryType
-
getJavadocContents
-
getJavadocContents
public String getJavadocContents(org.eclipse.core.runtime.IProgressMonitor monitor, String defaultEncoding) throws JavaModelException - Löst aus:
JavaModelException
-
getMemberTypes
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the receiver's nested types or null if the array is empty. This nested type info is extracted from the inner class attributes. Ask the name environment to find a member type using its compound name.- Angegeben von:
getMemberTypesin SchnittstelleIBinaryType
-
getMethods
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the receiver's methods or null if the array is empty.- Angegeben von:
getMethodsin SchnittstelleIBinaryType
-
getModifiers
public int getModifiers()Beschreibung aus Schnittstelle kopiert:IGenericTypeAnswer an int whose bits are set according the access constants defined by the VM spec. NOTE 1: We have added AccDeprecated Ungültige Eingabe: "&" AccSynthetic. NOTE 2: If the receiver represents a member type, the modifiers are extracted from its inner class attributes.- Angegeben von:
getModifiersin SchnittstelleIGenericType
-
getMissingTypeNames
public char[][][] getMissingTypeNames()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the list of missing type names which were referenced from the problem classfile. This list is encoded via an extra attribute.- Angegeben von:
getMissingTypeNamesin SchnittstelleIBinaryType
-
getName
public char[] getName()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the resolved name of the type in the class file format as specified in section 4.2 of the Java 2 VM spec. For example, java.lang.String is java/lang/String.- Angegeben von:
getNamein SchnittstelleIBinaryType
-
getSourceName
public char[] getSourceName()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the simple name of the type in the class file. For member A$B, will answer B. For anonymous will answer null.- Angegeben von:
getSourceNamein SchnittstelleIBinaryType
-
getSuperclassName
public char[] getSuperclassName()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer 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. For example, java.lang.String is java/lang/String.- Angegeben von:
getSuperclassNamein SchnittstelleIBinaryType
-
getTagBits
public long getTagBits()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the tagbits set according to the bits for annotations.- Angegeben von:
getTagBitsin SchnittstelleIBinaryType
-
getURLContents
-
isAnonymous
public boolean isAnonymous()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer true if the receiver is an anonymous class. false otherwise- Angegeben von:
isAnonymousin SchnittstelleIBinaryType
-
isBinaryType
public boolean isBinaryType()Beschreibung aus Schnittstelle kopiert:IGenericTypeAnswer whether the receiver contains the resolved binary form or the unresolved source form of the type.- Angegeben von:
isBinaryTypein SchnittstelleIGenericType
-
isLocal
public boolean isLocal()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer true if the receiver is a local class. false otherwise- Angegeben von:
isLocalin SchnittstelleIBinaryType
-
isRecord
public boolean isRecord()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer true if the receiver is a record. false otherwise- Angegeben von:
isRecordin SchnittstelleIBinaryType
-
isMember
public boolean isMember()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer true if the receiver is a member class. false otherwise- Angegeben von:
isMemberin SchnittstelleIBinaryType
-
sourceFileName
public char[] sourceFileName()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the source file attribute, or null if none. For example, "String.java"- Angegeben von:
sourceFileNamein SchnittstelleIBinaryType
-
enrichWithExternalAnnotationsFor
public ITypeAnnotationWalker enrichWithExternalAnnotationsFor(ITypeAnnotationWalker walker, Object member, LookupEnvironment environment) Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer a type annotation walker that takes into consideration also external annotations.- Angegeben von:
enrichWithExternalAnnotationsForin SchnittstelleIBinaryType- Parameter:
walker- previous walker, may be empty, otherwise it will be returned unchangedmember- if either a IBinaryField or a IBinaryMethod is provided, answer a walker specifically for that memberenvironment- for use by the walker- Gibt zurück:
- either a matching walker with data from external annotations or the walker provided via argument 'walker'.
-
getModule
public char[] getModule()Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the module to which this type belongs.nullif the type is associated to the unnamed module.- Angegeben von:
getModulein SchnittstelleIBinaryType- Gibt zurück:
- the module name or
null
-
getExternalAnnotationStatus
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer whether a provider for external annotations is associated with this binary type.- Angegeben von:
getExternalAnnotationStatusin SchnittstelleIBinaryType
-
getRecordComponents
Beschreibung aus Schnittstelle kopiert:IBinaryTypeAnswer the receiver's record components or null if the array is empty.- Angegeben von:
getRecordComponentsin SchnittstelleIBinaryType
-