Class AnnotationMethodInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.MethodInfo
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.AnnotationMethodInfo
- All Implemented Interfaces:
Comparable, IBinaryInfo, IBinaryMethod, IElementInfo, IGenericMethod
- Direct Known Subclasses:
AnnotationMethodInfoWithAnnotations
-
Field Summary
FieldsFields inherited from class MethodInfo
accessFlags, argumentNames, attributeBytes, descriptor, exceptionNames, name, signature, signatureUtf8Offset, tagBits, versionModifier and TypeFieldDescriptionprotected intprotected char[][]protected intprotected char[]protected char[][]protected char[]protected char[]protected intprotected longprotected long -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodInfocreateAnnotationMethod(byte[] classFileBytes, int[] offsets, int offset, long version) ReturnClassSignaturefor a ClassClass.Methods inherited from class MethodInfo
compareTo, createMethod, equals, getAnnotatedParametersCount, getAnnotations, getArgumentNames, getExceptionTypeNames, getGenericSignature, getMethodDescriptor, getModifiers, getParameterAnnotations, getSelector, getTagBits, getTypeAnnotations, hashCode, initialize, isClinit, isConstructor, isSynthetic, sizeInBytes, toString, toStringContentModifier and TypeMethodDescriptionintstatic MethodInfocreateMethod(byte[] classFileBytes, int[] offsets, int offset, long version) booleanintAnswer 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.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 and return types as specified in section 4.4.3 of the Java 2 VM spec.intAnswer an int whose bits are set according the access constants defined by the VM spec.getParameterAnnotations(int index, char[] classFileName) Answer the annotations on theindexth parameter or null if nonechar[]Answer the name of the method.longAnswer the tagbits set according to the bits for annotations.Answer the type annotations on this method.inthashCode()protected voidThis method is used to fully initialize the contents of the receiver.booleanisClinit()Answer true if the method is a class initializer, false otherwise.booleanAnswer true if the method is a constructor, false otherwise.booleanReturn true if the field is a synthetic method, false otherwise.intAnswer the size of the receiver in bytes.toString()protected voidtoStringContent(StringBuilder buffer) Methods inherited from class ClassFileStruct
doubleAt, floatAt, i4At, i8At, reset, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptiondoubledoubleAt(int relativeOffset) floatfloatAt(int relativeOffset) inti4At(int relativeOffset) longi8At(int relativeOffset) protected voidreset()intu1At(int relativeOffset) intu2At(int relativeOffset) intu4At(int relativeOffset) Returns an 32 bit integer created of 4 bytes.char[]utf8At(int relativeOffset, int bytesAvailable) Methods inherited from interface IBinaryMethod
getParameterCountModifier and TypeMethodDescriptiondefault intAnswer the number of method parameters based on analysis of the method descriptor.
-
Field Details
-
defaultValue
-
-
Method Details
-
createAnnotationMethod
public static MethodInfo createAnnotationMethod(byte[] classFileBytes, int[] offsets, int offset, long version) -
getDefaultValue
Description copied from interface:IBinaryMethodReturnClassSignaturefor a ClassClass. ReturnConstantfor compile-time constant of primitive type, as well as String literals. ReturnEnumConstantSignatureif value is an enum constant. ReturnIBinaryAnnotationfor annotation type. ReturnObject[] for array type.- Specified by:
getDefaultValuein interfaceIBinaryMethod- Overrides:
getDefaultValuein classMethodInfo- Returns:
- default value of this annotation method
-