|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.gen.Code
public final class Code
Builds a sequence of instructions.
| Method Summary | ||
|---|---|---|
void |
addCatchClause(Type<?> throwable,
Label catchClause)
|
|
void |
aget(Local<?> array,
Local<Integer> index,
Local<?> target)
|
|
void |
aput(Local<?> array,
Local<Integer> index,
Local<?> source)
|
|
|
arrayLength(Local<T> array,
Local<Integer> target)
|
|
|
compare(Comparison comparison,
Local<T> a,
Local<T> b,
Label trueLabel)
Compare ints. |
|
|
compare(Local<T> a,
Local<T> b,
Local<?> target)
Compare longs. |
|
|
compare(Local<T> a,
Local<T> b,
Local<Integer> target,
int nanValue)
Compare floats or doubles. |
|
|
getParameter(int index,
Type<T> type)
|
|
|
getThis(Type<T> type)
|
|
|
iget(FieldId<D,V> fieldId,
Local<D> instance,
Local<V> target)
|
|
void |
instanceOfType(Local<?> target,
Local<?> source,
Type<?> type)
|
|
|
invokeDirect(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
|
|
|
invokeInterface(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
|
|
|
invokeStatic(MethodId<?,R> method,
Local<? super R> target,
Local<?>... args)
|
|
|
invokeSuper(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
|
|
|
invokeVirtual(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
|
|
|
iput(FieldId<D,V> fieldId,
Local<D> instance,
Local<V> source)
|
|
void |
jump(Label target)
|
|
|
loadConstant(Local<T> target,
T value)
|
|
void |
mark(Label label)
Start defining instructions for the named label. |
|
|
negate(Local<T> source,
Local<T> target)
|
|
|
newArray(Local<Integer> length,
Local<T> target)
|
|
|
newInstance(Local<T> target,
MethodId<T,Void> constructor,
Local<?>... args)
|
|
Label |
newLabel()
Creates a new label for use as a branch target. |
|
|
newLocal(Type<T> type)
|
|
|
not(Local<T> source,
Local<T> target)
|
|
void |
numericCast(Local<?> source,
Local<?> target)
|
|
|
op(BinaryOp op,
Local<T> target,
Local<T> a,
Local<T> b)
|
|
Label |
removeCatchClause(Type<?> throwable)
|
|
void |
returnValue(Local<?> result)
|
|
void |
returnVoid()
|
|
|
sget(FieldId<?,V> fieldId,
Local<V> target)
|
|
|
sput(FieldId<?,V> fieldId,
Local<V> source)
|
|
void |
throwValue(Local<?> throwable)
|
|
void |
typeCast(Local<?> source,
Local<?> target)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public <T> Local<T> newLocal(Type<T> type)
public <T> Local<T> getParameter(int index,
Type<T> type)
public <T> Local<T> getThis(Type<T> type)
public Label newLabel()
mark(Label).
public void mark(Label label)
public void jump(Label target)
public void addCatchClause(Type<?> throwable,
Label catchClause)
public Label removeCatchClause(Type<?> throwable)
public void throwValue(Local<?> throwable)
public <T> void loadConstant(Local<T> target,
T value)
public <T> void negate(Local<T> source,
Local<T> target)
public <T> void not(Local<T> source,
Local<T> target)
public void numericCast(Local<?> source,
Local<?> target)
public <T> void op(BinaryOp op,
Local<T> target,
Local<T> a,
Local<T> b)
public <T> void compare(Comparison comparison,
Local<T> a,
Local<T> b,
Label trueLabel)
trueLabel. If it is false, execution continues to the next instruction.
public <T extends Number> void compare(Local<T> a,
Local<T> b,
Local<Integer> target,
int nanValue)
public <T> void compare(Local<T> a,
Local<T> b,
Local<?> target)
public <D,V> void iget(FieldId<D,V> fieldId,
Local<D> instance,
Local<V> target)
public <D,V> void iput(FieldId<D,V> fieldId,
Local<D> instance,
Local<V> source)
public <V> void sget(FieldId<?,V> fieldId,
Local<V> target)
public <V> void sput(FieldId<?,V> fieldId,
Local<V> source)
public <T> void newInstance(Local<T> target,
MethodId<T,Void> constructor,
Local<?>... args)
public <R> void invokeStatic(MethodId<?,R> method,
Local<? super R> target,
Local<?>... args)
public <D,R> void invokeVirtual(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
public <D,R> void invokeDirect(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
public <D,R> void invokeSuper(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
public <D,R> void invokeInterface(MethodId<D,R> method,
Local<? super R> target,
Local<? extends D> object,
Local<?>... args)
public void instanceOfType(Local<?> target,
Local<?> source,
Type<?> type)
public void typeCast(Local<?> source,
Local<?> target)
public <T> void arrayLength(Local<T> array,
Local<Integer> target)
public <T> void newArray(Local<Integer> length,
Local<T> target)
public void aget(Local<?> array,
Local<Integer> index,
Local<?> target)
public void aput(Local<?> array,
Local<Integer> index,
Local<?> source)
public void returnVoid()
public void returnValue(Local<?> result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||