Package proguard.dexfile.ir.expr
Class Exprs
- java.lang.Object
-
- proguard.dexfile.ir.expr.Exprs
-
public final class Exprs extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Value[]
copy(Value[] v)
static BinopExpr
nAdd(Value a, Value b, java.lang.String type)
static BinopExpr
nAnd(Value a, Value b, java.lang.String type)
static ArrayExpr
nArray(Value base, Value index, java.lang.String elementType)
static Constant
nArrayValue(java.lang.Object array)
static Constant
nByte(byte i)
static CastExpr
nCast(Value obj, java.lang.String from, java.lang.String to)
static Constant
nChar(char i)
static TypeExpr
nCheckCast(Value obj, java.lang.String type)
static Constant
nConstant(java.lang.Object cst)
static BinopExpr
nDCmpg(Value a, Value b)
static BinopExpr
nDCmpl(Value a, Value b)
static BinopExpr
nDiv(Value a, Value b, java.lang.String type)
static Constant
nDouble(double i)
static BinopExpr
nEq(Value a, Value b, java.lang.String type)
static RefExpr
nExceptionRef(java.lang.String type)
static BinopExpr
nFCmpg(Value a, Value b)
static BinopExpr
nFCmpl(Value a, Value b)
static FieldExpr
nField(Value object, java.lang.String ownerType, java.lang.String fieldName, java.lang.String fieldType)
static FilledArrayExpr
nFilledArray(java.lang.String elementType, Value[] datas)
static Constant
nFloat(float i)
static BinopExpr
nGe(Value a, Value b, java.lang.String type)
static BinopExpr
nGt(Value a, Value b, java.lang.String type)
static BinopExpr
niAdd(Value a, Value b)
static BinopExpr
niEq(Value a, Value b)
static BinopExpr
niGt(Value a, Value b)
static TypeExpr
nInstanceOf(Value value, java.lang.String type)
static Constant
nInt(int i)
static InvokeCustomExpr
nInvokeCustom(Value[] regs, java.lang.String name, Proto proto, MethodHandle handle, java.lang.Object[] bsmArgs)
static InvokeExpr
nInvokeInterface(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
static InvokeExpr
nInvokeNew(Value[] regs, java.lang.String[] argmentTypes, java.lang.String owner)
static InvokeExpr
nInvokeNew(Value[] regs, java.lang.String[] argmentTypes, java.lang.String owner, java.lang.String className)
static InvokePolymorphicExpr
nInvokePolymorphic(Value[] regs, Proto proto, Method method)
static InvokeExpr
nInvokeSpecial(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
static InvokeExpr
nInvokeStatic(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
static InvokeExpr
nInvokeVirtual(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
static BinopExpr
njGt(Value a, Value b)
static BinopExpr
nLCmp(Value a, Value b)
static BinopExpr
nLe(Value a, Value b, java.lang.String type)
static UnopExpr
nLength(Value array)
static Local
nLocal(int index)
static Local
nLocal(int index, java.lang.String debugName)
static Local
nLocal(java.lang.String debugName)
static Constant
nLong(long i)
static BinopExpr
nLt(Value a, Value b, java.lang.String type)
static BinopExpr
nMul(Value a, Value b, java.lang.String type)
static BinopExpr
nNe(Value a, Value b, java.lang.String type)
static UnopExpr
nNeg(Value array, java.lang.String type)
static NewExpr
nNew(java.lang.String type)
static TypeExpr
nNewArray(java.lang.String elementType, Value size)
static TypeExpr
nNewIntArray(Value size)
static TypeExpr
nNewLongArray(Value size)
static NewMutiArrayExpr
nNewMutiArray(java.lang.String base, int dim, Value[] sizes)
static UnopExpr
nNot(Value array, java.lang.String type)
static Constant
nNull()
static BinopExpr
nOr(Value a, Value b, java.lang.String type)
static RefExpr
nParameterRef(java.lang.String type, int index)
static PhiExpr
nPhi(Value... ops)
static BinopExpr
nRem(Value a, Value b, java.lang.String type)
static BinopExpr
nShl(Value a, Value b, java.lang.String type)
static Constant
nShort(short i)
static BinopExpr
nShr(Value a, Value b, java.lang.String type)
static StaticFieldExpr
nStaticField(java.lang.String ownerType, java.lang.String fieldName, java.lang.String fieldType)
static Constant
nString(java.lang.String i)
static BinopExpr
nSub(Value a, Value b, java.lang.String type)
static RefExpr
nThisRef(java.lang.String type)
static Constant
nType(java.lang.String desc)
static Constant
nType(DexType t)
static BinopExpr
nUshr(Value a, Value b, java.lang.String type)
static BinopExpr
nXor(Value a, Value b, java.lang.String type)
-
-
-
Method Detail
-
nByte
public static Constant nByte(byte i)
-
nChar
public static Constant nChar(char i)
-
nType
public static Constant nType(java.lang.String desc)
-
nDouble
public static Constant nDouble(double i)
-
nFloat
public static Constant nFloat(float i)
-
nInt
public static Constant nInt(int i)
-
nLong
public static Constant nLong(long i)
-
nNull
public static Constant nNull()
-
nShort
public static Constant nShort(short i)
-
nString
public static Constant nString(java.lang.String i)
-
nArrayValue
public static Constant nArrayValue(java.lang.Object array)
-
nExceptionRef
public static RefExpr nExceptionRef(java.lang.String type)
-
nField
public static FieldExpr nField(Value object, java.lang.String ownerType, java.lang.String fieldName, java.lang.String fieldType)
-
nInvokeInterface
public static InvokeExpr nInvokeInterface(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
-
nInvokeNew
public static InvokeExpr nInvokeNew(Value[] regs, java.lang.String[] argmentTypes, java.lang.String owner)
-
nInvokeNew
public static InvokeExpr nInvokeNew(Value[] regs, java.lang.String[] argmentTypes, java.lang.String owner, java.lang.String className)
-
nInvokeSpecial
public static InvokeExpr nInvokeSpecial(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
-
nInvokeStatic
public static InvokeExpr nInvokeStatic(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
-
nInvokeVirtual
public static InvokeExpr nInvokeVirtual(Value[] regs, java.lang.String owner, java.lang.String name, java.lang.String[] argmentTypes, java.lang.String returnType)
-
nInvokeCustom
public static InvokeCustomExpr nInvokeCustom(Value[] regs, java.lang.String name, Proto proto, MethodHandle handle, java.lang.Object[] bsmArgs)
-
nInvokePolymorphic
public static InvokePolymorphicExpr nInvokePolymorphic(Value[] regs, Proto proto, Method method)
-
nLocal
public static Local nLocal(int index)
-
nLocal
public static Local nLocal(java.lang.String debugName)
-
nLocal
public static Local nLocal(int index, java.lang.String debugName)
-
nNew
public static NewExpr nNew(java.lang.String type)
-
nFilledArray
public static FilledArrayExpr nFilledArray(java.lang.String elementType, Value[] datas)
-
nNewMutiArray
public static NewMutiArrayExpr nNewMutiArray(java.lang.String base, int dim, Value[] sizes)
-
nParameterRef
public static RefExpr nParameterRef(java.lang.String type, int index)
-
nStaticField
public static StaticFieldExpr nStaticField(java.lang.String ownerType, java.lang.String fieldName, java.lang.String fieldType)
-
nThisRef
public static RefExpr nThisRef(java.lang.String type)
-
nConstant
public static Constant nConstant(java.lang.Object cst)
-
-