Class MethodInfo
java.lang.Object
org.vesalainen.bcc.MethodInfo
- All Implemented Interfaces:
AnnotatedConstruct, Element, ExecutableElement, Parameterizable, Writable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AttributeInfo> private booleanprivate CodeAttributeprivate intprivate ClassFileprivate ExecutableElementprivate MethodCompilerprivate intprivate booleanprivate booleanprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionMethodInfo(ClassFile cf, DataInput in) MethodInfo(SubClass cf, ExecutableElement executableElement) -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(ElementVisitor<R, P> v, P p) private voidprivate voidasType()boolean<A extends Annotation>
AgetAnnotation(Class<A> annotationType) List<? extends AnnotationMirror> <A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) intgetKind()getMc()intList<? extends VariableElement> List<? extends TypeMirror> List<? extends TypeParameterElement> inthashCode()booleanbooleanvoidCall to this method tells that the Attribute is ready writing.voidsetMc(MethodCompiler mc) voidwrite(DataOutput out)
-
Field Details
-
executableElement
-
enclosingElement
-
name_index
private int name_index -
descriptor_index
private int descriptor_index -
attributes
-
mc
-
bridge
private boolean bridge -
varArgs
private boolean varArgs -
synthetic
private boolean synthetic -
code
-
readyToWrite
private boolean readyToWrite
-
-
Constructor Details
-
MethodInfo
MethodInfo(SubClass cf, ExecutableElement executableElement) - Parameters:
access_flags-name_index-descriptor_index-
-
MethodInfo
MethodInfo(ClassFile cf, DataInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
getExecutableElement
-
getModifiersAsString
-
addThrowables
private void addThrowables() -
addSignatureIfNeed
private void addSignatureIfNeed() -
isVarArgs
public boolean isVarArgs()- Specified by:
isVarArgsin interfaceExecutableElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement- Specified by:
getEnclosingElementin interfaceExecutableElement
-
accept
-
getDescriptor
-
getMc
-
setMc
-
getCodeAttribute
-
readyToWrite
public void readyToWrite()Call to this method tells that the Attribute is ready writing. This method must be called before constant pool is written. -
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
getDescriptor_index
public int getDescriptor_index() -
getName_index
public int getName_index() -
getModifiers
- Specified by:
getModifiersin interfaceElement
-
getThrownTypes
- Specified by:
getThrownTypesin interfaceExecutableElement
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceExecutableElement- Specified by:
getTypeParametersin interfaceParameterizable
-
getReturnType
- Specified by:
getReturnTypein interfaceExecutableElement
-
getParameters
- Specified by:
getParametersin interfaceExecutableElement
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceExecutableElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement- Specified by:
getSimpleNamein interfaceExecutableElement
-
asType
- Specified by:
asTypein interfaceElement- Specified by:
asTypein interfaceExecutableElement
-
getKind
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrorsin interfaceAnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfaceElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
hashCode
-
equals
-
getReceiverType
- Specified by:
getReceiverTypein interfaceExecutableElement
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceExecutableElement
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct- Specified by:
getAnnotationsByTypein interfaceElement
-