org.apache.bcel.generic

Class BasicType

Implemented Interfaces:
java.io.Serializable

public final class BasicType
extends Type

Denotes basic type such as int.
Version:
$Id: BasicType.java 386056 2006-03-15 11:31:56Z tcurdt $
Author:
M. Dahm
See Also:
Serialized Form

Field Summary

Fields inherited from class org.apache.bcel.generic.Type

BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, STRING, STRINGBUFFER, THROWABLE, UNKNOWN, VOID, consumed_chars, signature, type

Constructor Summary

BasicType(byte type)
Constructor for basic types such as int, long, `void'

Method Summary

boolean
equals(Object _type)
static BasicType
getType(byte type)
int
hashCode()

Methods inherited from class org.apache.bcel.generic.Type

equals, getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, hashCode, toString, unwrap, wrap

Constructor Details

BasicType

(package private)  BasicType(byte type)
Constructor for basic types such as int, long, `void'
Parameters:
type - one of T_INT, T_BOOLEAN, ..., T_VOID

Method Details

equals

public boolean equals(Object _type)
Overrides:
equals in interface Type
Returns:
true if both type objects refer to the same type

getType

public static final BasicType getType(byte type)

hashCode

public int hashCode()
Overrides:
hashCode in interface Type
Returns:
a hash code value for the object.