Package io.ebean.enhance.asm
Class Attribute
java.lang.Object
io.ebean.enhance.asm.Attribute
- Direct Known Subclasses:
ModuleHashesAttribute,ModuleResolutionAttribute,ModuleTargetAttribute
A non standard class, field, method or Code attribute, as defined in the Java Virtual Machine
Specification (JVMS).
- Author:
- Eric Bruneton, Eugene Kuleshov
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this type of attribute is a Code attribute.booleanReturns true if this type of attribute is unknown.
-
Field Details
-
type
The type of this attribute, also called its name in the JVMS.
-
-
Method Details
-
isUnknown
Returns true if this type of attribute is unknown. This means that the attribute content can't be parsed to extract constant pool references, labels, etc. Instead, the attribute content is read as an opaque byte array, and written back as is. This can lead to invalid attributes, if the content actually contains constant pool references, labels, or other symbolic references that need to be updated when there are changes to the constant pool, the method bytecode, etc. The default implementation of this method always returns true.- Returns:
- true if this type of attribute is unknown.
-
isCodeAttribute
Returns true if this type of attribute is a Code attribute.- Returns:
- true if this type of attribute is a Code attribute.
-