Klasse Unknown
java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
org.aspectj.apache.bcel.classfile.Unknown
- Alle implementierten Schnittstellen:
Serializable
,Cloneable
,Node
This class represents a reference to an unknown (i.e., application-specific) attribute of a class. It is instantiated from the
Attribute.readAttribute() method. Applications that need to read in application-specific attributes should create an AttributeReader implementation and attach it via Attribute.addAttributeReader.
- Version:
- $Id: Unknown.java,v 1.6 2009/09/15 19:40:12 aclement Exp $
- Autor:
- M. Dahm
- Siehe auch:
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungUnknown
(int name_index, int length, byte[] bytes, ConstantPool constant_pool) Create a non-standard attribute.Initialize from another object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.final void
dump
(DataOutputStream file) Dump unknown bytes to file stream.final byte[]
getBytes()
getName()
final void
setBytes
(byte[] bytes) final String
toString()
Von Klasse geerbte Methoden org.aspectj.apache.bcel.classfile.Attribute
getConstantPool, getLength, getNameIndex, getTag, readAttribute
-
Konstruktordetails
-
Unknown
Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy. -
Unknown
Create a non-standard attribute.- Parameter:
name_index
- Index in constant poollength
- Content length in bytesbytes
- Attribute contentsconstant_pool
- Array of constants
-
-
Methodendetails
-
accept
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. -
dump
Dump unknown bytes to file stream.- Setzt außer Kraft:
dump
in KlasseAttribute
- Parameter:
file
- Output file stream- Löst aus:
IOException
-
getBytes
public final byte[] getBytes()- Gibt zurück:
- data bytes.
-
getName
-
setBytes
public final void setBytes(byte[] bytes) - Parameter:
bytes
- .
-
toString
-