Class JavaLanguage.JavaInstructionFactory
java.lang.Object
com.ibm.wala.classLoader.JavaLanguage.JavaInstructionFactory
- All Implemented Interfaces:
SSAInstructionFactory
- Direct Known Subclasses:
JavaSourceLoaderImpl.InstructionFactory
- Enclosing class:
JavaLanguage
public static class JavaLanguage.JavaInstructionFactory
extends Object
implements SSAInstructionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAddressOfInstruction
(int iindex, int lval, int local, int indexVal, TypeReference pointeeType) AddressOfInstruction
(int iindex, int lval, int local, FieldReference field, TypeReference pointeeType) AddressOfInstruction
(int iindex, int lval, int local, TypeReference pointeeType) ArrayLengthInstruction
(int iindex, int result, int arrayref) ArrayLoadInstruction
(int iindex, int result, int arrayref, int index, TypeReference declaredType) ArrayStoreInstruction
(int iindex, int arrayref, int index, int value, TypeReference declaredType) BinaryOpInstruction
(int iindex, IBinaryOpInstruction.IOperator operator, boolean overflow, boolean unsigned, int result, int val1, int val2, boolean mayBeInteger) CheckCastInstruction
(int iindex, int result, int val, int[] typeValues, boolean isPEI) CheckCastInstruction
(int iindex, int result, int val, int typeValue, boolean isPEI) CheckCastInstruction
(int iindex, int result, int val, TypeReference[] types, boolean isPEI) CheckCastInstruction
(int iindex, int result, int val, TypeReference type, boolean isPEI) ComparisonInstruction
(int iindex, IComparisonInstruction.Operator operator, int result, int val1, int val2) ConditionalBranchInstruction
(int iindex, IConditionalBranchInstruction.IOperator operator, TypeReference type, int val1, int val2, int target) ConversionInstruction
(int iindex, int result, int val, TypeReference fromType, TypeReference toType, boolean overflow) GetCaughtExceptionInstruction
(int iindex, int bbNumber, int exceptionValueNumber) GetInstruction
(int iindex, int result, int ref, FieldReference field) GetInstruction
(int iindex, int result, FieldReference field) GotoInstruction
(int iindex, int target) InstanceofInstruction
(int iindex, int result, int ref, TypeReference checkedType) InvokeInstruction
(int iindex, int[] params, int exception, CallSiteReference site, BootstrapMethodsReader.BootstrapMethod bootstrap) InvokeInstruction
(int iindex, int result, int[] params, int exception, CallSiteReference site, BootstrapMethodsReader.BootstrapMethod bootstrap) LoadIndirectInstruction
(int iindex, int lval, TypeReference t, int addressVal) LoadMetadataInstruction
(int iindex, int lval, TypeReference entityType, Object token) MonitorInstruction
(int iindex, int ref, boolean isEnter) NewInstruction
(int iindex, int result, NewSiteReference site) NewInstruction
(int iindex, int result, NewSiteReference site, int[] params) PhiInstruction
(int iindex, int result, int[] params) PiInstruction
(int iindex, int result, int val, int piBlock, int successorBlock, SSAInstruction cause) PutInstruction
(int iindex, int ref, int value, FieldReference field) PutInstruction
(int iindex, int value, FieldReference field) ReturnInstruction
(int iindex) ReturnInstruction
(int iindex, int result, boolean isPrimitive) StoreIndirectInstruction
(int iindex, int addressVal, int rval, TypeReference pointeeType) SwitchInstruction
(int iindex, int val, int defaultLabel, int[] casesAndLabels) ThrowInstruction
(int iindex, int exception) UnaryOpInstruction
(int iindex, IUnaryOpInstruction.IOperator operator, int result, int val)
-
Constructor Details
-
JavaInstructionFactory
public JavaInstructionFactory()
-
-
Method Details
-
ArrayLengthInstruction
- Specified by:
ArrayLengthInstruction
in interfaceSSAInstructionFactory
-
ArrayLoadInstruction
public SSAArrayLoadInstruction ArrayLoadInstruction(int iindex, int result, int arrayref, int index, TypeReference declaredType) - Specified by:
ArrayLoadInstruction
in interfaceSSAInstructionFactory
-
ArrayStoreInstruction
public SSAArrayStoreInstruction ArrayStoreInstruction(int iindex, int arrayref, int index, int value, TypeReference declaredType) - Specified by:
ArrayStoreInstruction
in interfaceSSAInstructionFactory
-
BinaryOpInstruction
public SSAAbstractBinaryInstruction BinaryOpInstruction(int iindex, IBinaryOpInstruction.IOperator operator, boolean overflow, boolean unsigned, int result, int val1, int val2, boolean mayBeInteger) - Specified by:
BinaryOpInstruction
in interfaceSSAInstructionFactory
-
CheckCastInstruction
public SSACheckCastInstruction CheckCastInstruction(int iindex, int result, int val, int[] typeValues, boolean isPEI) - Specified by:
CheckCastInstruction
in interfaceSSAInstructionFactory
-
CheckCastInstruction
public SSACheckCastInstruction CheckCastInstruction(int iindex, int result, int val, TypeReference[] types, boolean isPEI) - Specified by:
CheckCastInstruction
in interfaceSSAInstructionFactory
-
CheckCastInstruction
public SSACheckCastInstruction CheckCastInstruction(int iindex, int result, int val, int typeValue, boolean isPEI) - Specified by:
CheckCastInstruction
in interfaceSSAInstructionFactory
-
CheckCastInstruction
public SSACheckCastInstruction CheckCastInstruction(int iindex, int result, int val, TypeReference type, boolean isPEI) - Specified by:
CheckCastInstruction
in interfaceSSAInstructionFactory
-
ComparisonInstruction
public SSAComparisonInstruction ComparisonInstruction(int iindex, IComparisonInstruction.Operator operator, int result, int val1, int val2) - Specified by:
ComparisonInstruction
in interfaceSSAInstructionFactory
-
ConditionalBranchInstruction
public SSAConditionalBranchInstruction ConditionalBranchInstruction(int iindex, IConditionalBranchInstruction.IOperator operator, TypeReference type, int val1, int val2, int target) - Specified by:
ConditionalBranchInstruction
in interfaceSSAInstructionFactory
-
ConversionInstruction
public SSAConversionInstruction ConversionInstruction(int iindex, int result, int val, TypeReference fromType, TypeReference toType, boolean overflow) - Specified by:
ConversionInstruction
in interfaceSSAInstructionFactory
-
GetCaughtExceptionInstruction
public SSAGetCaughtExceptionInstruction GetCaughtExceptionInstruction(int iindex, int bbNumber, int exceptionValueNumber) - Specified by:
GetCaughtExceptionInstruction
in interfaceSSAInstructionFactory
-
GetInstruction
- Specified by:
GetInstruction
in interfaceSSAInstructionFactory
-
GetInstruction
- Specified by:
GetInstruction
in interfaceSSAInstructionFactory
-
GotoInstruction
- Specified by:
GotoInstruction
in interfaceSSAInstructionFactory
-
InstanceofInstruction
public SSAInstanceofInstruction InstanceofInstruction(int iindex, int result, int ref, TypeReference checkedType) - Specified by:
InstanceofInstruction
in interfaceSSAInstructionFactory
-
InvokeInstruction
public SSAAbstractInvokeInstruction InvokeInstruction(int iindex, int result, int[] params, int exception, CallSiteReference site, BootstrapMethodsReader.BootstrapMethod bootstrap) - Specified by:
InvokeInstruction
in interfaceSSAInstructionFactory
-
InvokeInstruction
public SSAAbstractInvokeInstruction InvokeInstruction(int iindex, int[] params, int exception, CallSiteReference site, BootstrapMethodsReader.BootstrapMethod bootstrap) - Specified by:
InvokeInstruction
in interfaceSSAInstructionFactory
-
MonitorInstruction
- Specified by:
MonitorInstruction
in interfaceSSAInstructionFactory
-
NewInstruction
- Specified by:
NewInstruction
in interfaceSSAInstructionFactory
-
PhiInstruction
public SSAPhiInstruction PhiInstruction(int iindex, int result, int[] params) throws IllegalArgumentException - Specified by:
PhiInstruction
in interfaceSSAInstructionFactory
- Throws:
IllegalArgumentException
-
PutInstruction
- Specified by:
PutInstruction
in interfaceSSAInstructionFactory
-
PutInstruction
- Specified by:
PutInstruction
in interfaceSSAInstructionFactory
-
ReturnInstruction
- Specified by:
ReturnInstruction
in interfaceSSAInstructionFactory
-
ReturnInstruction
- Specified by:
ReturnInstruction
in interfaceSSAInstructionFactory
-
SwitchInstruction
public SSASwitchInstruction SwitchInstruction(int iindex, int val, int defaultLabel, int[] casesAndLabels) - Specified by:
SwitchInstruction
in interfaceSSAInstructionFactory
-
ThrowInstruction
- Specified by:
ThrowInstruction
in interfaceSSAInstructionFactory
-
UnaryOpInstruction
public SSAUnaryOpInstruction UnaryOpInstruction(int iindex, IUnaryOpInstruction.IOperator operator, int result, int val) - Specified by:
UnaryOpInstruction
in interfaceSSAInstructionFactory
-
LoadMetadataInstruction
public SSALoadMetadataInstruction LoadMetadataInstruction(int iindex, int lval, TypeReference entityType, Object token) - Specified by:
LoadMetadataInstruction
in interfaceSSAInstructionFactory
-
NewInstruction
public SSANewInstruction NewInstruction(int iindex, int result, NewSiteReference site, int[] params) - Specified by:
NewInstruction
in interfaceSSAInstructionFactory
-
PiInstruction
public SSAPiInstruction PiInstruction(int iindex, int result, int val, int piBlock, int successorBlock, SSAInstruction cause) - Specified by:
PiInstruction
in interfaceSSAInstructionFactory
-
AddressOfInstruction
public SSAAddressOfInstruction AddressOfInstruction(int iindex, int lval, int local, TypeReference pointeeType) - Specified by:
AddressOfInstruction
in interfaceSSAInstructionFactory
-
AddressOfInstruction
public SSAAddressOfInstruction AddressOfInstruction(int iindex, int lval, int local, int indexVal, TypeReference pointeeType) - Specified by:
AddressOfInstruction
in interfaceSSAInstructionFactory
-
AddressOfInstruction
public SSAAddressOfInstruction AddressOfInstruction(int iindex, int lval, int local, FieldReference field, TypeReference pointeeType) - Specified by:
AddressOfInstruction
in interfaceSSAInstructionFactory
-
LoadIndirectInstruction
public SSALoadIndirectInstruction LoadIndirectInstruction(int iindex, int lval, TypeReference t, int addressVal) - Specified by:
LoadIndirectInstruction
in interfaceSSAInstructionFactory
-
StoreIndirectInstruction
public SSAStoreIndirectInstruction StoreIndirectInstruction(int iindex, int addressVal, int rval, TypeReference pointeeType) - Specified by:
StoreIndirectInstruction
in interfaceSSAInstructionFactory
-