Package serp.bytecode
Class UnknownAttribute
- java.lang.Object
-
- serp.bytecode.Attributes
-
- serp.bytecode.Attribute
-
- serp.bytecode.UnknownAttribute
-
- All Implemented Interfaces:
BCEntity
,VisitAcceptor
public class UnknownAttribute extends Attribute
An unrecognized attribute; class files are allowed to contain attributes that are not recognized, and the JVM must ignore them.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisit(BCVisitor visit)
Accept a visit from aBCVisitor
, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this one.byte[]
getValue()
The value is of unknown content, so it is stored as a byte array.void
setValue(byte[] value)
The value is of unknown content, so it is stored as a byte array.-
Methods inherited from class serp.bytecode.Attribute
getClassLoader, getName, getNameIndex, getOwner, getPool, getProject, isValid
-
Methods inherited from class serp.bytecode.Attributes
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes
-
-
-
-
Method Detail
-
getValue
public byte[] getValue()
The value is of unknown content, so it is stored as a byte array.
-
setValue
public void setValue(byte[] value)
The value is of unknown content, so it is stored as a byte array.
-
acceptVisit
public void acceptVisit(BCVisitor visit)
Description copied from interface:VisitAcceptor
Accept a visit from aBCVisitor
, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this one.
-
-