|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.classgen.asm.OperandStack
public class OperandStack extends Object
Constructor Summary | |
OperandStack(WriterController wc)
|
Method Summary | |
---|---|
ClassNode
|
box()
|
void
|
castToBool(int mark, boolean emptyDefault)
ensure last marked parameter on the stack is a primitive boolean if mark==stack size, we assume an empty expression or statement. |
void
|
doAsType(ClassNode targetType)
|
void
|
doGroovyCast(ClassNode targetType)
|
void
|
doGroovyCast(Variable v)
|
void
|
dup()
|
int
|
getStackLength()
|
ClassNode
|
getTopOperand()
|
org.objectweb.asm.Label
|
jump(int ifIns)
|
void
|
jump(int ifIns, org.objectweb.asm.Label label)
duplicate top element |
void
|
load(ClassNode type, int idx)
|
void
|
loadOrStoreVariable(BytecodeVariable variable, boolean useReferenceDirectly)
|
void
|
pop()
remove operand stack top element using bytecode pop |
void
|
popDownTo(int elements)
|
void
|
push(ClassNode type)
swap two top level operands |
void
|
pushBool(boolean inclusive)
|
void
|
pushConstant(ConstantExpression expression)
|
void
|
pushDynamicName(Expression name)
|
void
|
remove(int amount)
Remove amount elements from the operand stack, without using pop. |
void
|
replace(ClassNode type)
replace top level element with new element of given type |
void
|
replace(ClassNode type, int n)
|
void
|
storeVar(BytecodeVariable variable)
|
void
|
swap()
|
String
|
toString()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public OperandStack(WriterController wc)
Method Detail |
---|
public ClassNode box()
public void castToBool(int mark, boolean emptyDefault)
public void doAsType(ClassNode targetType)
public void doGroovyCast(ClassNode targetType)
public void doGroovyCast(Variable v)
public void dup()
public int getStackLength()
public ClassNode getTopOperand()
public org.objectweb.asm.Label jump(int ifIns)
public void jump(int ifIns, org.objectweb.asm.Label label)
public void load(ClassNode type, int idx)
public void loadOrStoreVariable(BytecodeVariable variable, boolean useReferenceDirectly)
public void pop()
public void popDownTo(int elements)
public void push(ClassNode type)
public void pushBool(boolean inclusive)
public void pushConstant(ConstantExpression expression)
public void pushDynamicName(Expression name)
public void remove(int amount)
public void replace(ClassNode type)
public void replace(ClassNode type, int n)
public void storeVar(BytecodeVariable variable)
public void swap()
public String toString()
Copyright © 2003-2013 The Codehaus. All rights reserved.