java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.MethodImpl
- All Implemented Interfaces:
Iterable<MethodElement>,AttributedElement,ClassElement,ClassfileElement,CompoundElement<MethodElement>,MethodInfo,MethodModel,WritableElement<MethodModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of this element.code()Returns the body of this method, if there is one.flags()Returns the access flags.voidforEachElement(Consumer<MethodElement> consumer) Invoke the provided handler with each element contained in this compound elementintReturns the name of this method.Returns the method descriptor of this method.intparameterSlot(int paramNo) parent()Returns the class model this method is a member of, if known.toString()voidWrites the element to the specified writervoidwriteTo(DirectClassBuilder builder) Methods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo, writeTo, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.AttributedElement
findAttribute, findAttributesMethods inherited from interface org.glavo.classfile.CompoundElement
elementList, elements, elementStream, iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.glavo.classfile.impl.MethodInfo
receiverSlotMethods inherited from interface org.glavo.classfile.MethodModel
methodTypeSymbol
-
Constructor Details
-
MethodImpl
-
-
Method Details
-
flags
Description copied from interface:MethodModelReturns the access flags.- Specified by:
flagsin interfaceMethodModel- Returns:
- the access flags
-
parent
Description copied from interface:MethodModelReturns the class model this method is a member of, if known.- Specified by:
parentin interfaceMethodModel- Returns:
- the class model this method is a member of, if known
-
methodName
Description copied from interface:MethodModelReturns the name of this method.- Specified by:
methodNamein interfaceMethodInfo- Specified by:
methodNamein interfaceMethodModel- Returns:
- the name of this method
-
methodType
Description copied from interface:MethodModelReturns the method descriptor of this method.- Specified by:
methodTypein interfaceMethodInfo- Specified by:
methodTypein interfaceMethodModel- Returns:
- the method descriptor of this method
-
methodFlags
public int methodFlags()- Specified by:
methodFlagsin interfaceMethodInfo
-
parameterSlot
public int parameterSlot(int paramNo) - Specified by:
parameterSlotin interfaceMethodInfo
-
attributes
Description copied from interface:AttributedElementReturns the attributes of this element.- Specified by:
attributesin interfaceAttributedElement- Returns:
- the attributes of this element
-
writeTo
Description copied from interface:WritableElementWrites the element to the specified writer- Specified by:
writeToin interfaceWritableElement<MethodModel>- Parameters:
b- the writer
-
code
Description copied from interface:MethodModelReturns the body of this method, if there is one.- Specified by:
codein interfaceMethodModel- Returns:
- the body of this method, if there is one
-
forEachElement
Description copied from interface:CompoundElementInvoke the provided handler with each element contained in this compound element- Specified by:
forEachElementin interfaceCompoundElement<MethodElement>- Parameters:
consumer- the handler
-
writeTo
- Overrides:
writeToin classAbstractElement
-
toString
-