Module org.glavo.classfile
Package org.glavo.classfile.impl
Class BoundAttribute.BoundEnclosingMethodAttribute
java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.BoundAttribute<EnclosingMethodAttribute>
org.glavo.classfile.impl.BoundAttribute.BoundEnclosingMethodAttribute
- All Implemented Interfaces:
Attribute<EnclosingMethodAttribute>,EnclosingMethodAttribute,ClassElement,ClassfileElement,WritableElement<EnclosingMethodAttribute>
- Enclosing class:
BoundAttribute<T extends Attribute<T>>
public static final class BoundAttribute.BoundEnclosingMethodAttribute
extends BoundAttribute<EnclosingMethodAttribute>
implements EnclosingMethodAttribute
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glavo.classfile.impl.BoundAttribute
BoundAttribute.BoundAnnotationDefaultAttr, BoundAttribute.BoundBootstrapMethodsAttribute, BoundAttribute.BoundCharacterRangeTableAttribute, BoundAttribute.BoundCodeAttribute, BoundAttribute.BoundCompilationIDAttribute, BoundAttribute.BoundConstantValueAttribute, BoundAttribute.BoundDeprecatedAttribute, BoundAttribute.BoundEnclosingMethodAttribute, BoundAttribute.BoundExceptionsAttribute, BoundAttribute.BoundInnerClassesAttribute, BoundAttribute.BoundLineNumberTableAttribute, BoundAttribute.BoundLocalVariableTableAttribute, BoundAttribute.BoundLocalVariableTypeTableAttribute, BoundAttribute.BoundMethodParametersAttribute, BoundAttribute.BoundModuleAttribute, BoundAttribute.BoundModuleHashesAttribute, BoundAttribute.BoundModuleMainClassAttribute, BoundAttribute.BoundModulePackagesAttribute, BoundAttribute.BoundModuleResolutionAttribute, BoundAttribute.BoundModuleTargetAttribute, BoundAttribute.BoundNestHostAttribute, BoundAttribute.BoundNestMembersAttribute, BoundAttribute.BoundPermittedSubclassesAttribute, BoundAttribute.BoundRecordAttribute, BoundAttribute.BoundRuntimeInvisibleAnnotationsAttribute, BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute, BoundAttribute.BoundRuntimeInvisibleTypeAnnotationsAttribute, BoundAttribute.BoundRuntimeVisibleAnnotationsAttribute, BoundAttribute.BoundRuntimeVisibleParameterAnnotationsAttribute, BoundAttribute.BoundRuntimeVisibleTypeAnnotationsAttribute, BoundAttribute.BoundSignatureAttribute, BoundAttribute.BoundSourceDebugExtensionAttribute, BoundAttribute.BoundSourceFileAttribute, BoundAttribute.BoundSourceIDAttribute, BoundAttribute.BoundStackMapTableAttribute, BoundAttribute.BoundSyntheticAttribute, BoundAttribute.BoundUnknownAttribute -
Constructor Summary
ConstructorsConstructorDescriptionBoundEnclosingMethodAttribute(ClassReader cf, AttributeMapper<EnclosingMethodAttribute> mapper, int pos) -
Method Summary
Modifier and TypeMethodDescriptionReturns the innermost class that encloses the declaration of the current class.Returns the name and type of the enclosing method, if the class is immediately enclosed by a method or constructor.Methods inherited from class org.glavo.classfile.impl.BoundAttribute
attributeMapper, attributeName, constantPool, contents, payloadLen, readAttributes, toString, writeTo, writeTo, 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.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.attribute.EnclosingMethodAttribute
enclosingMethodName, enclosingMethodType, enclosingMethodTypeSymbolMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Constructor Details
-
BoundEnclosingMethodAttribute
public BoundEnclosingMethodAttribute(ClassReader cf, AttributeMapper<EnclosingMethodAttribute> mapper, int pos)
-
-
Method Details
-
enclosingClass
Description copied from interface:EnclosingMethodAttributeReturns the innermost class that encloses the declaration of the current class.- Specified by:
enclosingClassin interfaceEnclosingMethodAttribute- Returns:
- the innermost class that encloses the declaration of the current class
-
enclosingMethod
Description copied from interface:EnclosingMethodAttributeReturns the name and type of the enclosing method, if the class is immediately enclosed by a method or constructor.- Specified by:
enclosingMethodin interfaceEnclosingMethodAttribute- Returns:
- the name and type of the enclosing method, if the class is immediately enclosed by a method or constructor
-