Packages

sealed abstract class StackInterpreter extends AnyRef

Created by chris on 1/6/16. Stack operations implemented in the script programming language https://en.bitcoin.it/wiki/Script#Stack

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StackInterpreter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def op2Drop(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Removes the top two stack items.

  16. def op2Dup(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Duplicates the top two stack items.

  17. def op2Over(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Copies the pair of items two spaces back in the stack to the front.

  18. def op2Rot(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    The fifth and sixth items back are moved to the top of the stack.

    The fifth and sixth items back are moved to the top of the stack. Ex. x1 x2 x3 x4 x5 x6 -> x3 x4 x5 x6 x1 x2

  19. def op2Swap(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Swaps the top two pairs of items.

  20. def op3Dup(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Duplicates the top three stack items.

  21. def opDepth(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Puts the number of stack items onto the stack.

  22. def opDrop(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Removes the top stack item.

  23. def opDup(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Duplicates the element on top of the stack expects the first element in script to be the OP_DUP operation.

  24. def opFromAltStack(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Puts the input onto the top of the main stack.

    Puts the input onto the top of the main stack. Removes it from the alt stack.

  25. def opIfDup(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    If the top stack value is not 0, duplicate it.

  26. def opNip(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Removes the second-to-top stack item.

  27. def opOver(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Copies the second-to-top stack item to the top.

  28. def opPick(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    The item n back in the stack is copied to the top.

  29. def opRoll(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    The item n back in the stack is moved to the top.

  30. def opRot(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    The top three items on the stack are rotated to the left.

    The top three items on the stack are rotated to the left. Ex: x1 x2 x3 -> x2 x3 x1

  31. def opSwap(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    The top two items on the stack are swapped.

  32. def opToAltStack(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Puts the input onto the top of the alt stack.

    Puts the input onto the top of the alt stack. Removes it from the main stack.

  33. def opTuck(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    The item at the top of the stack is copied and inserted before the second-to-top item.

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped