Class MethodInfoWithAnnotations
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.MethodInfoWithAnnotations
- All Implemented Interfaces:
Comparable, IBinaryInfo, IBinaryMethod, IElementInfo, IGenericMethod
-
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 TypeMethodDescriptionAnswer the runtime visible and invisible annotations for this method or null if none.protected voidThis method is used to fully initialize the contents of the receiver.protected voidreset()Methods inherited from class MethodInfo
compareTo, createMethod, equals, getAnnotatedParametersCount, getArgumentNames, getDefaultValue, getExceptionTypeNames, getGenericSignature, getMethodDescriptor, getModifiers, getParameterAnnotations, getSelector, getTagBits, getTypeAnnotations, hashCode, 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[]).char[][]Answer the names of the argument or null if the argument names are not available.ReturnClassSignaturefor 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 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()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, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptiondoubledoubleAt(int relativeOffset) floatfloatAt(int relativeOffset) inti4At(int relativeOffset) longi8At(int relativeOffset) 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
-
annotations
-
-
Method Details
-
getAnnotations
Description copied from interface:IBinaryMethodAnswer the runtime visible and invisible annotations for this method or null if none.- Specified by:
getAnnotationsin interfaceIBinaryMethod- Overrides:
getAnnotationsin classMethodInfo
-
initialize
protected void initialize()Description copied from class:MethodInfoThis method is used to fully initialize the contents of the receiver. All methodinfos, fields infos will be therefore fully initialized and we can get rid of the bytes.- Overrides:
initializein classMethodInfo
-
reset
protected void reset()- Overrides:
resetin classClassFileStruct
-