org.jetbrains.kotlin.codegen
Class StackValue.OnStack

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.StackValue
      extended by org.jetbrains.kotlin.codegen.StackValue.OnStack
Enclosing class:
StackValue

public static class StackValue.OnStack
extends StackValue


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jetbrains.kotlin.codegen.StackValue
StackValue.CallReceiver, StackValue.CollectionElement, StackValue.CollectionElementReceiver, StackValue.Constant, StackValue.DelegatedForComplexReceiver, StackValue.Field, StackValue.FieldForSharedVar, StackValue.Local, StackValue.OnStack, StackValue.Receiver, StackValue.Shared, StackValue.StackValueWithSimpleReceiver
 
Field Summary
 
Fields inherited from class org.jetbrains.kotlin.codegen.StackValue
LOCAL_0, type
 
Constructor Summary
StackValue.OnStack(org.jetbrains.org.objectweb.asm.Type type)
           
 
Method Summary
 void moveToTopOfStack(org.jetbrains.org.objectweb.asm.Type type, org.jetbrains.org.objectweb.asm.commons.InstructionAdapter v, int depth)
          This method is called to put the value on the top of the JVM stack if depth other values have been put on the JVM stack after this value was generated.
 void putSelector(org.jetbrains.org.objectweb.asm.Type type, org.jetbrains.org.objectweb.asm.commons.InstructionAdapter v)
           
 
Methods inherited from class org.jetbrains.kotlin.codegen.StackValue
arrayElement, canHaveSideEffects, changeReceiverForFieldAndSharedVar, cmp, coerce, coerceFrom, coerceTo, coercion, collectionElement, complexWriteReadReceiver, condJump, constant, couldSkipReceiverOnStaticCall, dup, expression, field, field, fieldForSharedVar, fieldForSharedVar, functionCall, isNonStaticAccess, local, none, not, onStack, operation, postIncrement, preIncrement, preIncrementForLocalVar, property, put, put, putAsBoolean, putReceiver, putUnitInstance, receiver, receiverWithoutReceiverArgument, refType, shared, sharedTypeForType, singleton, store, store, storeSelector, thisOrOuter, unit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackValue.OnStack

public StackValue.OnStack(org.jetbrains.org.objectweb.asm.Type type)
Method Detail

putSelector

public void putSelector(@NotNull
                        org.jetbrains.org.objectweb.asm.Type type,
                        @NotNull
                        org.jetbrains.org.objectweb.asm.commons.InstructionAdapter v)
Specified by:
putSelector in class StackValue

moveToTopOfStack

public void moveToTopOfStack(@NotNull
                             org.jetbrains.org.objectweb.asm.Type type,
                             @NotNull
                             org.jetbrains.org.objectweb.asm.commons.InstructionAdapter v,
                             int depth)
Description copied from class: StackValue
This method is called to put the value on the top of the JVM stack if depth other values have been put on the JVM stack after this value was generated.

Overrides:
moveToTopOfStack in class StackValue
Parameters:
type - the type as which the value should be put
v - the visitor used to genClassOrObject the instructions
depth - the number of new values put onto the stack