Package org.apache.bcel.generic
Class BasicType
- java.lang.Object
-
- org.apache.bcel.generic.Type
-
- org.apache.bcel.generic.BasicType
-
public final class BasicType extends Type
Denotes basic type such as int.
-
-
Constructor Summary
Constructors Constructor Description BasicType(byte type)Constructor for basic types such as int, long, 'void'
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object type)static BasicTypegetType(byte type)Gets the BasicType for the given type constant.inthashCode()Gets the hash code of this Type.-
Methods inherited from class org.apache.bcel.generic.Type
consumed, encode, getArgumentTypes, getArgumentTypesSize, getClassName, getMethodSignature, getReturnType, getReturnTypeSize, getSignature, getSignature, getSize, getType, getType, getType, getTypes, getTypeSize, internalTypeNameToSignature, normalizeForStackOrLocal, size, toString
-
-
-
-
Constructor Detail
-
BasicType
BasicType(byte type)
Constructor for basic types such as int, long, 'void'- Parameters:
type- one of T_INT, T_BOOLEAN, ..., T_VOID.- See Also:
Const
-
-
Method Detail
-
getType
public static BasicType getType(byte type)
Gets the BasicType for the given type constant.- Parameters:
type- the type constant.- Returns:
- the BasicType.
- Since:
- 6.0
-
equals
public boolean equals(java.lang.Object type)
-
-