org.jruby.compiler.ir
Enum Operation

java.lang.Object
  extended by java.lang.Enum<Operation>
      extended by org.jruby.compiler.ir.Operation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Operation>

public enum Operation
extends java.lang.Enum<Operation>


Enum Constant Summary
ADD
           
ALLOC_BINDING
           
ATTR_ASSIGN
           
BEQ
           
BINDING_LOAD
           
BINDING_STORE
           
BNE
           
BOX_VALUE
           
BREAK
           
CALL
           
CASE
           
CLOSURE_RETURN
           
COPY
           
DECLARE_TYPE
           
DEF_CLASS
           
DEF_CLASS_METH
           
DEF_INST_METH
           
DEF_MODULE
           
DIV
           
EQQ
           
EXC_REGION_END
           
EXC_REGION_START
           
FILE_NAME
           
GET_ARRAY
           
GET_CONST
           
GET_CVAR
           
GET_FIELD
           
GET_GLOBAL_VAR
           
IS_TRUE
           
JRUBY_IMPL
           
JUMP
           
JUMP_INDIRECT
           
LABEL
           
LINE_NUM
           
METHOD_LOOKUP
           
METHOD_VERSION_GUARD
           
MODULE_VERSION_GUARD
           
MUL
           
NOT
           
PUT_ARRAY
           
PUT_CONST
           
PUT_CVAR
           
PUT_FIELD
           
PUT_GLOBAL_VAR
           
RECV_ARG
           
RECV_CLOSURE
           
RECV_CLOSURE_ARG
           
RECV_EXCEPTION
           
RECV_OPT_ARG
           
RECV_SELF
           
RETRY
           
RETURN
           
RUBY_INTERNALS
           
SEARCH_CONST
           
SET_RETADDR
           
SUB
           
THREAD_POLL
           
THROW
           
UNBOX_VALUE
           
YIELD
           
 
Method Summary
 boolean canRaiseException()
           
 boolean endsBasicBlock()
           
 boolean hasSideEffects()
           
 boolean isALU()
           
 boolean isArgReceive()
           
 boolean isBranch()
           
 boolean isCall()
           
 boolean isEval()
           
 boolean isException()
           
 boolean isLoad()
           
 boolean isReturn()
           
 boolean isStore()
           
 boolean startsBasicBlock()
           
 java.lang.String toString()
           
static Operation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Operation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 boolean xfersControl()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COPY

public static final Operation COPY

SET_RETADDR

public static final Operation SET_RETADDR

NOT

public static final Operation NOT

ADD

public static final Operation ADD

SUB

public static final Operation SUB

MUL

public static final Operation MUL

DIV

public static final Operation DIV

RETURN

public static final Operation RETURN

CLOSURE_RETURN

public static final Operation CLOSURE_RETURN

BREAK

public static final Operation BREAK

RECV_ARG

public static final Operation RECV_ARG

RECV_SELF

public static final Operation RECV_SELF

RECV_CLOSURE

public static final Operation RECV_CLOSURE

RECV_OPT_ARG

public static final Operation RECV_OPT_ARG

RECV_CLOSURE_ARG

public static final Operation RECV_CLOSURE_ARG

RECV_EXCEPTION

public static final Operation RECV_EXCEPTION

CALL

public static final Operation CALL

JRUBY_IMPL

public static final Operation JRUBY_IMPL

RUBY_INTERNALS

public static final Operation RUBY_INTERNALS

METHOD_LOOKUP

public static final Operation METHOD_LOOKUP

YIELD

public static final Operation YIELD

DEF_MODULE

public static final Operation DEF_MODULE

DEF_CLASS

public static final Operation DEF_CLASS

DEF_INST_METH

public static final Operation DEF_INST_METH

DEF_CLASS_METH

public static final Operation DEF_CLASS_METH

THROW

public static final Operation THROW

RETRY

public static final Operation RETRY

LABEL

public static final Operation LABEL

EXC_REGION_START

public static final Operation EXC_REGION_START

EXC_REGION_END

public static final Operation EXC_REGION_END

CASE

public static final Operation CASE

LINE_NUM

public static final Operation LINE_NUM

FILE_NAME

public static final Operation FILE_NAME

GET_CONST

public static final Operation GET_CONST

GET_GLOBAL_VAR

public static final Operation GET_GLOBAL_VAR

GET_FIELD

public static final Operation GET_FIELD

GET_CVAR

public static final Operation GET_CVAR

GET_ARRAY

public static final Operation GET_ARRAY

BINDING_LOAD

public static final Operation BINDING_LOAD

SEARCH_CONST

public static final Operation SEARCH_CONST

PUT_CONST

public static final Operation PUT_CONST

PUT_GLOBAL_VAR

public static final Operation PUT_GLOBAL_VAR

PUT_FIELD

public static final Operation PUT_FIELD

PUT_ARRAY

public static final Operation PUT_ARRAY

PUT_CVAR

public static final Operation PUT_CVAR

BINDING_STORE

public static final Operation BINDING_STORE

ATTR_ASSIGN

public static final Operation ATTR_ASSIGN

JUMP

public static final Operation JUMP

JUMP_INDIRECT

public static final Operation JUMP_INDIRECT

BEQ

public static final Operation BEQ

BNE

public static final Operation BNE

ALLOC_BINDING

public static final Operation ALLOC_BINDING

THREAD_POLL

public static final Operation THREAD_POLL

DECLARE_TYPE

public static final Operation DECLARE_TYPE

IS_TRUE

public static final Operation IS_TRUE

EQQ

public static final Operation EQQ

MODULE_VERSION_GUARD

public static final Operation MODULE_VERSION_GUARD

METHOD_VERSION_GUARD

public static final Operation METHOD_VERSION_GUARD

BOX_VALUE

public static final Operation BOX_VALUE

UNBOX_VALUE

public static final Operation UNBOX_VALUE
Method Detail

values

public static Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Operation c : Operation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Operation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isALU

public boolean isALU()

xfersControl

public boolean xfersControl()

isBranch

public boolean isBranch()

isLoad

public boolean isLoad()

isStore

public boolean isStore()

isCall

public boolean isCall()

isEval

public boolean isEval()

isReturn

public boolean isReturn()

isException

public boolean isException()

isArgReceive

public boolean isArgReceive()

startsBasicBlock

public boolean startsBasicBlock()

endsBasicBlock

public boolean endsBasicBlock()

hasSideEffects

public boolean hasSideEffects()

canRaiseException

public boolean canRaiseException()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Operation>


Copyright © 2002-2009 JRuby Team. All Rights Reserved.