Public Methods | |
String | getSignature () |
int | getSize () |
byte | getType () |
String | toString () |
void | apply (Switch sw) |
Type | merge (Type other, SootClassManager cm) |
abstract String | toString () |
String | getSignature () |
int | getSize () |
byte | getType () |
String | toString () |
abstract void | apply (TypeSwitch sw, Object o) |
boolean | compatibleWith (Type type) |
boolean | containsValue (Object value) |
Expr | defaultVal () |
Object | getDef () |
int | getExtent () |
String | getName () |
String | getTypeId () |
abstract boolean | isKind (int kind) |
boolean | isSubtypeOf (Type type) |
void | setName (String name) |
void | setTypeId (String typeId) |
String | typeName () |
String | typeSpec () |
boolean | equals (Object otherType) |
abstract String | getFullyQualifiedName () |
Type | getType () |
boolean | isValidCastingConversion (Type otherType) |
boolean | isValidIdentityConversion (Type otherType) |
boolean | isValidMethodInvocationConversion (Type otherType) |
abstract boolean | isValidNarrowingConversion (Type otherType) |
abstract boolean | isValidWideningConversion (Type otherType) |
String | toString () |
Static Public Methods | |
Type[] | getArgumentTypes (String signature) |
String | getMethodSignature (Type return_type, Type[] arg_types) |
Type | getReturnType (String signature) |
final Type | getType (String signature) throws StringIndexOutOfBoundsException |
Type | toMachineType (Type t) |
synchronized Type[] | getArgumentTypes (String signature) |
String | getMethodSignature (Type return_type, Type[] arg_types) |
Type | getReturnType (String signature) |
synchronized final Type | getType (String signature) throws StringIndexOutOfBoundsException |
Static Public Attributes | |
final BasicType | VOID = new BasicType(T_VOID) |
final BasicType | BOOLEAN = new BasicType(T_BOOLEAN) |
final BasicType | INT = new BasicType(T_INT) |
final BasicType | SHORT = new BasicType(T_SHORT) |
final BasicType | BYTE = new BasicType(T_BYTE) |
final BasicType | LONG = new BasicType(T_LONG) |
final BasicType | DOUBLE = new BasicType(T_DOUBLE) |
final BasicType | FLOAT = new BasicType(T_FLOAT) |
final BasicType | CHAR = new BasicType(T_CHAR) |
final ObjectType | OBJECT = new ObjectType("java.lang.Object") |
final ObjectType | STRING = new ObjectType("java.lang.String") |
final ObjectType | STRINGBUFFER = new ObjectType("java.lang.StringBuffer") |
final Type[] | NO_ARGS = new Type[0] |
final ReferenceType | NULL = new ReferenceType() |
final Type[] | NO_ARGS = new Type[0] |
final Type | UNKNOWN |
final Type | ADDRESS |
Type | booleanType = new Bool() |
Type | defaultRangeType = new Range(DefaultValues.birMinIntRange,DefaultValues.birMaxIntRange) |
final Type | intType = new Range() |
final Type | WR_lockType = new Lock(true,true) |
Protected Methods | |
Type (byte t, String s) | |
Type (byte t, String s) | |
Protected Attributes | |
byte | type |
String | signature |
Name | name |
Private Attributes | |
String | name |
String | typeId |
int | extent = 1 |
Static Private Attributes | |
int | consumed_chars = 0 |
Definition at line 15 of file lib/jpf/de/fub/bytecode/generic/Type.java.
|
Reimplemented in ArrayType, ObjectType, Ref, Lock, ArrayType, Collection, ArrayType, BasicType, ObjectType, Array, Bool, Enumerated, Field, Range, Record, Ref, and Ref. Definition at line 44 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Type.java. Referenced by ObjectType::equals(), ArrayType::equals(), SootClass::getMethod(), and CFG::jimplify().
|
|
Convert arguments of a method (signature) to an array of Type objects.
Definition at line 51 of file src/de/fub/bytecode/generic/Type.java. |
|
Convert arguments of a method (signature) to an array of Type objects.
Definition at line 47 of file lib/jpf/de/fub/bytecode/generic/Type.java. |
|
Reimplemented in ArrayType. Referenced by isValidIdentityConversion(), and ArrayType::isValidWideningConversion().
|
|
Convert type to Java method signature, e.g. int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I
Definition at line 82 of file src/de/fub/bytecode/generic/Type.java. |
|
Convert type to Java method signature, e.g. int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I
Definition at line 78 of file lib/jpf/de/fub/bytecode/generic/Type.java. |
|
Convert arguments of a method (signature) to a Type object.
Definition at line 99 of file src/de/fub/bytecode/generic/Type.java. |
|
Convert arguments of a method (signature) to a Type object.
Definition at line 95 of file lib/jpf/de/fub/bytecode/generic/Type.java. |
|
Definition at line 111 of file src/de/fub/bytecode/generic/Type.java. |
|
Definition at line 107 of file lib/jpf/de/fub/bytecode/generic/Type.java. Referenced by ArrayType::ArrayType(), ConstantPoolGen::addArrayClass(), InstructionFactory::createFieldAccess(), SlicingMethod::genNewCritForExit(), FieldGen::getField(), LocalVariableGen::getLocalVariable(), getMethodSignature(), and FieldGen::getSignature().
|
|
Reimplemented in Array, and Collection. Definition at line 115 of file src/de/fub/bytecode/generic/Type.java. |
|
Reimplemented in Array, and Collection. Definition at line 111 of file lib/jpf/de/fub/bytecode/generic/Type.java. Referenced by MethodGen::addLocalVariable(), InstructionFactory::createInvoke(), FieldInstruction::getFieldSize(), and MethodGen::setMaxLocals().
|
|
Reimplemented in Field, and Field. Definition at line 59 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Type.java. |
|
Convert signature to a Type object.
Definition at line 132 of file src/de/fub/bytecode/generic/Type.java. |
|
Reimplemented in Field, and Field. Definition at line 126 of file src/de/fub/bytecode/generic/Type.java. |
|
Convert signature to a Type object.
Definition at line 128 of file lib/jpf/de/fub/bytecode/generic/Type.java. |
|
Reimplemented in Field, and Field. Definition at line 122 of file lib/jpf/de/fub/bytecode/generic/Type.java. Referenced by ArrayType::ArrayType(), MethodGen::addLocalVariable(), SpinTrans::caseDerefExpr(), SmvTrans::caseDerefExpr(), Ref::computeTargetType(), InstructionFactory::createArrayLoad(), InstructionFactory::createArrayStore(), InstructionFactory::createBinaryOperation(), InstructionFactory::createCast(), InstructionFactory::createLoad(), InstructionFactory::createNull(), InstructionFactory::createReturn(), InstructionFactory::createStore(), getArgumentTypes(), getReturnType(), and getType().
|
|
Definition at line 67 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Type.java. |
|
Definition at line 76 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Type.java. |
|
Definition at line 84 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Type.java. |
|
Reimplemented in ArrayType. Referenced by ArrayType::isValidNarrowingConversion().
|
|
Reimplemented in ArrayType. Referenced by ArrayType::isValidWideningConversion().
|
|
Reimplemented in Field, ReferenceType, Ref, ArrayType, Field, Array, Bool, Collection, Enumerated, Field, Lock, Range, Record, Ref, Field, and Ref. Definition at line 103 of file src/edu/ksu/cis/bandera/jjjc/symboltable/Type.java. |
|
Reimplemented in Field, ReferenceType, Ref, ArrayType, Field, Array, Bool, Collection, Enumerated, Field, Lock, Range, Record, Ref, Field, and Ref. Definition at line 168 of file src/de/fub/bytecode/generic/Type.java. |
|
Reimplemented in Field, ReferenceType, Ref, ArrayType, Field, Array, Bool, Collection, Enumerated, Field, Lock, Range, Record, Ref, Field, and Ref. Definition at line 164 of file lib/jpf/de/fub/bytecode/generic/Type.java. Referenced by PostProcessOnAnnotation::addCatchesToSliceSet(), PostProcess::addCatchesToSliceSet(), TypeExtractor::arrayName(), IndexMaps::getInvokeMethodForStart(), IndexMaps::lookupSootClassByThread(), and FieldGen::toString().
|
|
Initial value: new Type(Constants.T_ADDRESS, "<address>"){} Definition at line 37 of file src/de/fub/bytecode/generic/Type.java. |
|
Initial value: new Type(Constants.T_UNKNOWN, "<unknown object>"){} Definition at line 35 of file src/de/fub/bytecode/generic/Type.java. |
|
Predefined constants Definition at line 21 of file src/de/fub/bytecode/generic/Type.java. |