| Modifier and Type | Field and Description |
|---|---|
| private final WriterController | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClassNode | |
| public 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. |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| private int | |
| public int | |
| public ClassNode | |
| private static boolean | |
| public Label | |
| public void | |
| public void | |
| public void | |
| private static void | |
| public void | |
| public void | |
| private ClassNode | |
| public void | |
| public void | |
| public void | |
| public void | |
| private static void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public String |
| controller | back to summary |
|---|---|
| private final WriterController controller | |
| stack | back to summary |
|---|---|
| private final List<ClassNode> stack | |
| OperandStack | back to summary |
|---|---|
| public OperandStack(WriterController wc) | |
| box | back to summary |
|---|---|
| public ClassNode box() | |
| castToBool | back to summary |
|---|---|
| public 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. was used and we will use the value given in emptyDefault as boolean if mark==stack.size()-1 the top element will be cast to boolean using Groovy truth. In other cases we throw a GroovyBugError | |
| convertFromDouble | back to summary |
|---|---|
| private boolean convertFromDouble(ClassNode target) | |
| convertFromFloat | back to summary |
|---|---|
| private boolean convertFromFloat(ClassNode target) | |
| convertFromInt | back to summary |
|---|---|
| private boolean convertFromInt(ClassNode target) | |
| convertFromLong | back to summary |
|---|---|
| private boolean convertFromLong(ClassNode target) | |
| convertPrimitive | back to summary |
|---|---|
| private boolean convertPrimitive(ClassNode top, ClassNode target) | |
| doAsType | back to summary |
|---|---|
| public void doAsType(ClassNode targetType) | |
| doConvertAndCast | back to summary |
|---|---|
| private void doConvertAndCast(ClassNode targetType, boolean coerce) | |
| doGroovyCast | back to summary |
|---|---|
| public void doGroovyCast(ClassNode targetType) do Groovy cast for top level element | |
| doGroovyCast | back to summary |
|---|---|
| public void doGroovyCast(Variable v) | |
| dup | back to summary |
|---|---|
| public void dup() duplicate top element | |
| ensureStackNotEmpty | back to summary |
|---|---|
| private int ensureStackNotEmpty(List<ClassNode> stack) | |
| getStackLength | back to summary |
|---|---|
| public int getStackLength() | |
| getTopOperand | back to summary |
|---|---|
| public ClassNode getTopOperand() | |
| isTwoSlotType | back to summary |
|---|---|
| private static boolean isTwoSlotType(ClassNode type) returns true for long and double | |
| jump | back to summary |
|---|---|
| public Label jump(int ifIns) | |
| jump | back to summary |
|---|---|
| public void jump(int ifIns, Label label) | |
| load | back to summary |
|---|---|
| public void load(ClassNode type, int idx) | |
| loadOrStoreVariable | back to summary |
|---|---|
| public void loadOrStoreVariable(BytecodeVariable variable, boolean useReferenceDirectly) | |
| newInstance | back to summary |
|---|---|
| private static void newInstance(MethodVisitor mv, Object value) | |
| pop | back to summary |
|---|---|
| public void pop() remove operand stack top element using bytecode pop | |
| popDownTo | back to summary |
|---|---|
| public void popDownTo(int elements) | |
| popWithMessage | back to summary |
|---|---|
| private ClassNode popWithMessage(int last) | |
| push | back to summary |
|---|---|
| public void push(ClassNode type) push operand on stack | |
| pushBool | back to summary |
|---|---|
| public void pushBool(boolean inclusive) | |
| pushConstant | back to summary |
|---|---|
| public void pushConstant(ConstantExpression expression) load the constant on the operand stack. | |
| pushDynamicName | back to summary |
|---|---|
| public void pushDynamicName(Expression name) | |
| pushPrimitiveConstant | back to summary |
|---|---|
| private static void pushPrimitiveConstant(final MethodVisitor mv, final Object value, final ClassNode type) | |
| remove | back to summary |
|---|---|
| public void remove(int amount) Remove amount elements from the operand stack, without using pop. For example after a method invocation | |
| replace | back to summary |
|---|---|
| public void replace(ClassNode type) replace top level element with new element of given type | |
| replace | back to summary |
|---|---|
| public void replace(ClassNode type, int n) replace n top level elements with new element of given type | |
| storeVar | back to summary |
|---|---|
| public void storeVar(BytecodeVariable variable) | |
| swap | back to summary |
|---|---|
| public void swap() swap two top level operands | |
| throwExceptionForNoStackElement | back to summary |
|---|---|
| private void throwExceptionForNoStackElement(int size, ClassNode targetType, boolean coerce) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |