Libraries.Language.Compile.Translate.JavaBytecodeOpcodes Documentation

This class represents raw bytecode constants taken from the ASM 5 java bytecode library. What little documentation exists for them can be found here: http://asm.ow2.org/asm50/javadoc/user/org/objectweb/asm/Opcodes.html#V1_8 In the future, this constants should be changed to make more sense in English. In the meantime, they are private and intentionally match ASM. Public actions giving values back should use more realistic English phrase

Inherits from: Libraries.Language.Object

Summary

Actions Summary Table

ActionsDescription
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
ConvertTypeToBytecodeLoadOpcode(Libraries.Language.Compile.Symbol.Type type)
ConvertTypeToBytecodeStoreOpcode(Libraries.Language.Compile.Symbol.Type type)
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
GetAbstract()
GetBooleanReturn()This method actually returns an IRETURN opcode, but is placed here for convenience.
GetCheckCast()
GetCompareDoubleGreater()
GetCompareDoubleLess()
GetDoubleAdd()
GetDoubleDivide()
GetDoubleLoad()
GetDoubleModulus()
GetDoubleMultiply()
GetDoubleReturn()
GetDoubleStore()
GetDoubleSubtract()
GetDoubleToInteger()
GetDuplicate()
GetDuplicateDouble()
GetDuplicateDoubleUp1()
GetDuplicateDoubleUp2()
GetDuplicateUp1()
GetDuplicateUp2()
GetField()
GetFinal()
GetFloatReturn()
GetGetField()
GetGoto()
GetHashCode()This action gets the hash code for an object.
GetIfEquals()
GetIfGreaterThan()
GetIfGreaterThanEquals()
GetIfIntegerEquals()
GetIfIntegerGreaterThan()
GetIfIntegerGreaterThanEquals()
GetIfIntegerLessThan()
GetIfIntegerLessThanEquals()
GetIfIntegerNotEquals()
GetIfLessThan()
GetIfLessThanEquals()
GetIfNonNull()
GetIfNotEquals()
GetIfNull()
GetIfObjectEquals()
GetIfObjectNotEquals()
GetIncrementInteger()
GetInstanceOf()
GetIntegerAdd()
GetIntegerDivide()
GetIntegerLoad()
GetIntegerModulus()
GetIntegerMultiply()
GetIntegerOne()
GetIntegerReturn()
GetIntegerStore()
GetIntegerSubtract()
GetIntegerToDouble()
GetIntegerZero()assume it is an object otherwi
GetInterface()
GetInvertedIntegerCompareOpcode(integer op)
GetInvokeDynamic()
GetInvokeInterface()
GetInvokeSpecial()
GetInvokeStatic()
GetInvokeVirtual()
GetJavaVersion(integer version)
GetLoadOpcode(Libraries.Language.Compile.Symbol.Type type)Generates the appropriate opcode for loading an item onto the stack from a given Quorum type descripto
GetLongIntegerReturn()
GetNegateDouble()
GetNegateFloat()
GetNegateInteger()
GetNegateLong()
GetNew()
GetObjectLoad()
GetObjectReturn()This method actually returns an IRETURN opcode, but is placed here for convenience.
GetObjectStore()
GetObjectThrow()Generates the appropriate opcode for loading an item onto the stack from a given Quorum type descripto
GetPop()
GetPopDouble()
GetPrivate()
GetProtected()
GetPublic()
GetPutField()
GetReturn()
GetReturnOpcode(Libraries.Language.Compile.Symbol.Type type)
GetStatic()
GetStaticField()
GetSuper()
GetSwap()
PutField()
PutStaticField()

Actions Documentation

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smalle

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

ConvertTypeToBytecodeLoadOpcode(Libraries.Language.Compile.Symbol.Type type)

Parameters

Return

integer

ConvertTypeToBytecodeStoreOpcode(Libraries.Language.Compile.Symbol.Type type)

Parameters

Return

integer

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Example Code

use Libraries.Language.Object
        use Libraries.Language.Types.Text
        Object o
        Text t
        boolean result = o:Equals(

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

GetAbstract()

Return

integer

GetBooleanReturn()

This method actually returns an IRETURN opcode, but is placed here for convenience. This is because Java Bytecode does not have an explicit boolean typ

Return

integer:

GetCheckCast()

Return

integer

GetCompareDoubleGreater()

Return

integer

GetCompareDoubleLess()

Return

integer

GetDoubleAdd()

Return

integer

GetDoubleDivide()

Return

integer

GetDoubleLoad()

Return

integer

GetDoubleModulus()

Return

integer

GetDoubleMultiply()

Return

integer

GetDoubleReturn()

Return

integer

GetDoubleStore()

Return

integer

GetDoubleSubtract()

Return

integer

GetDoubleToInteger()

Return

integer

GetDuplicate()

Return

integer

GetDuplicateDouble()

Return

integer

GetDuplicateDoubleUp1()

Return

integer

GetDuplicateDoubleUp2()

Return

integer

GetDuplicateUp1()

Return

integer

GetDuplicateUp2()

Return

integer

GetField()

Return

integer

GetFinal()

Return

integer

GetFloatReturn()

Return

integer

GetGetField()

Return

integer

GetGoto()

Return

integer

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode

Return

integer: The integer hash code of the object.

GetIfEquals()

Return

integer

GetIfGreaterThan()

Return

integer

GetIfGreaterThanEquals()

Return

integer

GetIfIntegerEquals()

Return

integer

GetIfIntegerGreaterThan()

Return

integer

GetIfIntegerGreaterThanEquals()

Return

integer

GetIfIntegerLessThan()

Return

integer

GetIfIntegerLessThanEquals()

Return

integer

GetIfIntegerNotEquals()

Return

integer

GetIfLessThan()

Return

integer

GetIfLessThanEquals()

Return

integer

GetIfNonNull()

Return

integer

GetIfNotEquals()

Return

integer

GetIfNull()

Return

integer

GetIfObjectEquals()

Return

integer

GetIfObjectNotEquals()

Return

integer

GetIncrementInteger()

Return

integer

GetInstanceOf()

Return

integer

GetIntegerAdd()

Return

integer

GetIntegerDivide()

Return

integer

GetIntegerLoad()

Return

integer

GetIntegerModulus()

Return

integer

GetIntegerMultiply()

Return

integer

GetIntegerOne()

Return

integer

GetIntegerReturn()

Return

integer

GetIntegerStore()

Return

integer

GetIntegerSubtract()

Return

integer

GetIntegerToDouble()

Return

integer

GetIntegerZero()

assume it is an object otherwi

Return

integer:

GetInterface()

Return

integer

GetInvertedIntegerCompareOpcode(integer op)

Parameters

Return

integer

GetInvokeDynamic()

Return

integer

GetInvokeInterface()

Return

integer

GetInvokeSpecial()

Return

integer

GetInvokeStatic()

Return

integer

GetInvokeVirtual()

Return

integer

GetJavaVersion(integer version)

Parameters

Return

integer

GetLoadOpcode(Libraries.Language.Compile.Symbol.Type type)

Generates the appropriate opcode for loading an item onto the stack from a given Quorum type descripto

Parameters

Return

integer:

GetLongIntegerReturn()

Return

integer

GetNegateDouble()

Return

integer

GetNegateFloat()

Return

integer

GetNegateInteger()

Return

integer

GetNegateLong()

Return

integer

GetNew()

Return

integer

GetObjectLoad()

Return

integer

GetObjectReturn()

This method actually returns an IRETURN opcode, but is placed here for convenience. This is because Java Bytecode does not have an explicit boolean typ

Return

integer:

GetObjectStore()

Return

integer

GetObjectThrow()

Generates the appropriate opcode for loading an item onto the stack from a given Quorum type descripto

Return

integer:

GetPop()

Return

integer

GetPopDouble()

Return

integer

GetPrivate()

Return

integer

GetProtected()

Return

integer

GetPublic()

Return

integer

GetPutField()

Return

integer

GetReturn()

Return

integer

GetReturnOpcode(Libraries.Language.Compile.Symbol.Type type)

Parameters

Return

integer

GetStatic()

Return

integer

GetStaticField()

Return

integer

GetSuper()

Return

integer

GetSwap()

Return

integer

PutField()

Return

integer

PutStaticField()

Return

integer