java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.AbstractUnboundModel<MethodElement>
org.glavo.classfile.impl.BufferedMethodBuilder.Model
- All Implemented Interfaces:
Iterable<MethodElement>,AttributedElement,ClassElement,ClassFileElement,CompoundElement<MethodElement>,MethodInfo,MethodModel,WritableElement<MethodModel>
- Enclosing class:
BufferedMethodBuilder
public final class BufferedMethodBuilder.Model
extends AbstractUnboundModel<MethodElement>
implements MethodModel, MethodInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the body of this method, if there is one.flags()Returns the access flags.intReturns the name of this method.Returns the method descriptor of this method.Returns the method descriptor of this method, as a symbolic descriptor.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.AbstractUnboundModel
attributes, elementList, elementStream, forEachElementMethods 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
attributes, findAttribute, findAttributesMethods inherited from interface org.glavo.classfile.CompoundElement
elementList, elements, elementStream, forEachElement, iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.glavo.classfile.impl.MethodInfo
receiverSlot
-
Constructor Details
-
Model
public Model()
-
-
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
-
methodTypeSymbol
Description copied from interface:MethodModelReturns the method descriptor of this method, as a symbolic descriptor.- Specified by:
methodTypeSymbolin interfaceMethodInfo- Specified by:
methodTypeSymbolin interfaceMethodModel- Returns:
- the method descriptor of this method, as a symbolic descriptor
-
methodFlags
public int methodFlags()- Specified by:
methodFlagsin interfaceMethodInfo
-
parameterSlot
public int parameterSlot(int paramNo) - Specified by:
parameterSlotin interfaceMethodInfo
-
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
-
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
Description copied from interface:WritableElementWrites the element to the specified writer- Specified by:
writeToin interfaceWritableElement<MethodModel>- Parameters:
buf- the writer
-
toString
-