Klasse Unknown

java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
org.aspectj.apache.bcel.classfile.Unknown
Alle implementierten Schnittstellen:
Serializable, Cloneable, Node

public final class Unknown extends Attribute
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:
  • Konstruktordetails

    • Unknown

      public Unknown(Unknown c)
      Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.
    • Unknown

      public Unknown(int name_index, int length, byte[] bytes, ConstantPool constant_pool)
      Create a non-standard attribute.
      Parameter:
      name_index - Index in constant pool
      length - Content length in bytes
      bytes - Attribute contents
      constant_pool - Array of constants
  • Methodendetails

    • accept

      public void accept(ClassVisitor v)
      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.
      Angegeben von:
      accept in Schnittstelle Node
      Angegeben von:
      accept in Klasse Attribute
      Parameter:
      v - Visitor object
    • dump

      public final void dump(DataOutputStream file) throws IOException
      Dump unknown bytes to file stream.
      Setzt außer Kraft:
      dump in Klasse Attribute
      Parameter:
      file - Output file stream
      Löst aus:
      IOException
    • getBytes

      public final byte[] getBytes()
      Gibt zurück:
      data bytes.
    • getName

      public String getName()
      Setzt außer Kraft:
      getName in Klasse Attribute
      Gibt zurück:
      name of attribute.
    • setBytes

      public final void setBytes(byte[] bytes)
      Parameter:
      bytes - .
    • toString

      public final String toString()
      Setzt außer Kraft:
      toString in Klasse Attribute
      Gibt zurück:
      String representation.