public final class

BinaryClass

extends ClassDefinition
implements Constants
java.lang.Object
   ↳ sun.tools.java.ClassDefinition
     ↳ sun.tools.java.BinaryClass

Class Overview

WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

[Expand]
Inherited Constants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From class sun.tools.java.ClassDefinition
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
BinaryClass(Object source, ClassDeclaration declaration, int modifiers, ClassDeclaration superClass, ClassDeclaration[] interfaces, Vector dependencies)
Constructor
Public Methods
void addDependency(ClassDeclaration c)
Add a dependency
byte[] getAttribute(Identifier name)
Get a class attribute
BinaryConstantPool getConstants()
Get the constant pool
Enumeration getDependencies()
Get the dependencies
static BinaryClass load(Environment env, DataInputStream in, int mask)
static BinaryClass load(Environment env, DataInputStream in)
Load a binary class
void loadNested(Environment env)
Called when an environment ties a binary definition to a declaration.
void loadNested(Environment env, int flags)
void write(Environment env, OutputStream out)
Write the class out to a given stream.
Protected Methods
void basicCheck(Environment env)
Ready a BinaryClass for further checking.
[Expand]
Inherited Methods
From class sun.tools.java.ClassDefinition
From class java.lang.Object

Public Constructors

public BinaryClass (Object source, ClassDeclaration declaration, int modifiers, ClassDeclaration superClass, ClassDeclaration[] interfaces, Vector dependencies)

Constructor

Public Methods

public void addDependency (ClassDeclaration c)

Add a dependency

public byte[] getAttribute (Identifier name)

Get a class attribute

public BinaryConstantPool getConstants ()

Get the constant pool

public Enumeration getDependencies ()

Get the dependencies

public static BinaryClass load (Environment env, DataInputStream in, int mask)

Throws
IOException

public static BinaryClass load (Environment env, DataInputStream in)

Load a binary class

Throws
IOException

public void loadNested (Environment env)

Called when an environment ties a binary definition to a declaration. At this point, auxiliary definitions may be loaded.

public void loadNested (Environment env, int flags)

public void write (Environment env, OutputStream out)

Write the class out to a given stream. This function mirrors the loader.

Throws
IOException

Protected Methods

protected void basicCheck (Environment env)

Ready a BinaryClass for further checking. Note that, until recently, BinaryClass relied on the default basicCheck() provided by ClassDefinition. The definition here has been added to ensure that the information generated by collectInheritedMethods is available for BinaryClasses.

Throws
ClassNotFound