Klasse CodeSnippetSkeleton.BinaryMethodSkeleton
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.eval.CodeSnippetSkeleton.BinaryMethodSkeleton
- Alle implementierten Schnittstellen:
IBinaryMethod
,IGenericMethod
- Umschließende Klasse:
CodeSnippetSkeleton
public static class CodeSnippetSkeleton.BinaryMethodSkeleton
extends Object
implements IBinaryMethod
-
Konstruktorübersicht
KonstruktorBeschreibungBinaryMethodSkeleton
(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Answer the number of parameter annotations that can be retrieved usingIBinaryMethod.getParameterAnnotations(int, char[])
.Answer the runtime visible and invisible annotations for this method or null if none.char[][]
Answer the names of the argument or null if the argument names are not available.ReturnClassSignature
for a ClassClass
.char[][]
Answer the resolved names of the exception types in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the array is empty.char[]
Answer the receiver's MethodSignature, which describes the type parameters, parameter types, return type, and exception types as specified in "4.7.9.1 Signatures" of the Java SE 8 VM spec.char[]
Answer the receiver's method descriptor which describes the parameter Ungültige Eingabe: "&" return types as specified in section 4.4.3 of the Java 2 VM spec.int
Answer an int whose bits are set according the access constants defined by the VM spec.getParameterAnnotations
(int index, char[] classFileName) Answer the annotations on theindex
th parameter or null if nonechar[]
Answer the name of the method.long
Answer the tagbits set according to the bits for annotations.Answer the type annotations on this method.boolean
isClinit()
Answer whether the receiver represents a class initializer method.boolean
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryMethod
getParameterCount
-
Konstruktordetails
-
BinaryMethodSkeleton
public BinaryMethodSkeleton(char[] selector, char[] methodDescriptor, char[][] exceptionTypeNames, boolean isConstructor)
-
-
Methodendetails
-
getAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the runtime visible and invisible annotations for this method or null if none.- Angegeben von:
getAnnotations
in SchnittstelleIBinaryMethod
-
getArgumentNames
public char[][] getArgumentNames()Beschreibung aus Schnittstelle kopiert:IGenericMethod
Answer the names of the argument or null if the argument names are not available.- Angegeben von:
getArgumentNames
in SchnittstelleIGenericMethod
-
getDefaultValue
Beschreibung aus Schnittstelle kopiert:IBinaryMethod
ReturnClassSignature
for a ClassClass
. ReturnConstant
for compile-time constant of primitive type, as well as String literals. ReturnEnumConstantSignature
if value is an enum constant. ReturnIBinaryAnnotation
for annotation type. ReturnObject
[] for array type.- Angegeben von:
getDefaultValue
in SchnittstelleIBinaryMethod
- Gibt zurück:
- default value of this annotation method
-
getExceptionTypeNames
public char[][] getExceptionTypeNames()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the resolved names of the exception types 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:
getExceptionTypeNames
in SchnittstelleIBinaryMethod
-
getGenericSignature
public char[] getGenericSignature()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the receiver's MethodSignature, which describes the type parameters, parameter types, return type, and exception types as specified in "4.7.9.1 Signatures" of the Java SE 8 VM spec.- Angegeben von:
getGenericSignature
in SchnittstelleIBinaryMethod
-
getMethodDescriptor
public char[] getMethodDescriptor()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the receiver's method descriptor which describes the parameter Ungültige Eingabe: "&" return types as specified in section 4.4.3 of the Java 2 VM spec. For example: - int foo(String) is (Ljava/lang/String;)I - Object[] foo(int) is (I)[Ljava/lang/Object;- Angegeben von:
getMethodDescriptor
in SchnittstelleIBinaryMethod
-
getModifiers
public int getModifiers()Beschreibung aus Schnittstelle kopiert:IGenericMethod
Answer an int whose bits are set according the access constants defined by the VM spec.- Angegeben von:
getModifiers
in SchnittstelleIGenericMethod
-
getParameterAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the annotations on theindex
th parameter or null if none- Angegeben von:
getParameterAnnotations
in SchnittstelleIBinaryMethod
- Parameter:
index
- the index of the parameter of interestclassFileName
- (file) name of the declaring class for error reporting
-
getAnnotatedParametersCount
public int getAnnotatedParametersCount()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the number of parameter annotations that can be retrieved usingIBinaryMethod.getParameterAnnotations(int, char[])
.- Angegeben von:
getAnnotatedParametersCount
in SchnittstelleIBinaryMethod
- Gibt zurück:
- one beyond the highest legal argument to
IBinaryMethod.getParameterAnnotations(int, char[])
.
-
getTypeAnnotations
Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the type annotations on this method.- Angegeben von:
getTypeAnnotations
in SchnittstelleIBinaryMethod
-
getSelector
public char[] getSelector()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the name of the method. For a constructor, answerUngültige Eingabe: "&" for a clinit method. - Angegeben von:
getSelector
in SchnittstelleIBinaryMethod
-
getTagBits
public long getTagBits()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer the tagbits set according to the bits for annotations.- Angegeben von:
getTagBits
in SchnittstelleIBinaryMethod
-
isClinit
public boolean isClinit()Beschreibung aus Schnittstelle kopiert:IBinaryMethod
Answer whether the receiver represents a class initializer method.- Angegeben von:
isClinit
in SchnittstelleIBinaryMethod
-
isConstructor
public boolean isConstructor()- Angegeben von:
isConstructor
in SchnittstelleIGenericMethod
-