javar.methods
Class Argument

java.lang.Object
  |
  +--javar.methods.Argument
Direct Known Subclasses:
SignedByte, SignedInteger, SignedShort, UnsignedByte, UnsignedShort

public abstract class Argument
extends Object

This is an argument to a JVM opcode.

Author:
Ben Litchfield

Field Summary
protected  long data
           
 
Constructor Summary
Argument(long d)
          Constructor
 
Method Summary
abstract  byte[] getBytes()
          This will convert this argument to bytes
 long getData()
          This will get the byte that of this argument
 String toString()
          This will return a string representation of this arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected long data
Constructor Detail

Argument

public Argument(long d)
Constructor

Method Detail

getData

public long getData()
This will get the byte that of this argument

Returns:
the byte for this argument

toString

public String toString()
This will return a string representation of this arguments.

Overrides:
toString in class Object
Returns:
the object as a string

getBytes

public abstract byte[] getBytes()
This will convert this argument to bytes

Returns:
The bytes that make this argument