javar.interfaces
Class Interface

java.lang.Object
  |
  +--javar.interfaces.Interface

public class Interface
extends Object

This class will represent an interface that a class implements

Author:
Ben Litchfield

Constructor Summary
Interface(ConstantPool p)
          Constructor
 
Method Summary
 String getInterfaceName()
          This will get the name of this interface.
 String getShortInterfaceName()
          This will get the name of this interface without the package
 void load(DataInputStream in)
          This will load the information need to be an interface for a class
 byte[] toBytes()
           
 String toString()
          This will print this interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interface

public Interface(ConstantPool p)
Constructor

Method Detail

load

public void load(DataInputStream in)
This will load the information need to be an interface for a class


getInterfaceName

public String getInterfaceName()
This will get the name of this interface.

Returns:
The fully qualified name of the interface class.

getShortInterfaceName

public String getShortInterfaceName()
This will get the name of this interface without the package

Returns:
The name of the interface class.

toString

public String toString()
This will print this interface

Overrides:
toString in class Object

toBytes

public byte[] toBytes()
               throws IOException
IOException