Package soot
Class PrimType
- java.lang.Object
-
- soot.Type
-
- soot.PrimType
-
- All Implemented Interfaces:
Serializable,Numberable,Switchable
- Direct Known Subclasses:
BooleanType,ByteType,CharType,DecimalType,DoubleType,FloatType,Integer127Type,Integer1Type,Integer32767Type,IntType,LongType,ShortType,UByteType,UIntType,ULongType,UShortType
public abstract class PrimType extends Type
Abstract class for Soot classes that that model Java primitive types (ie all types except void, null, reference types, and array types)- Author:
- Ondrej Lhotak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrimType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RefTypeboxedType()abstract Class<?>getJavaBoxedType()abstract Class<?>getJavaPrimitiveType()abstract StringgetTypeAsString()booleanisAllowedInFinalCode()Returnstrueif this type is allowed to appear in final (clean) Jimple code.-
Methods inherited from class soot.Type
apply, getArrayType, getDefaultFinalType, getEscapedName, getNumber, makeArrayType, merge, setArrayType, setNumber, toMachineType, toQuotedString, toString
-
-
-
-
Method Detail
-
boxedType
public RefType boxedType()
-
getJavaBoxedType
public abstract Class<?> getJavaBoxedType()
-
getJavaPrimitiveType
public abstract Class<?> getJavaPrimitiveType()
-
isAllowedInFinalCode
public boolean isAllowedInFinalCode()
Description copied from class:TypeReturnstrueif this type is allowed to appear in final (clean) Jimple code.- Overrides:
isAllowedInFinalCodein classType- Returns:
-
getTypeAsString
public abstract String getTypeAsString()
-
-