com.flagstone.transform.action
Enum NewFunction2.Optimization

java.lang.Object
  extended by java.lang.Enum<NewFunction2.Optimization>
      extended by com.flagstone.transform.action.NewFunction2.Optimization
All Implemented Interfaces:
Serializable, Comparable<NewFunction2.Optimization>
Enclosing class:
NewFunction2

public static enum NewFunction2.Optimization
extends Enum<NewFunction2.Optimization>

The set of optimisations that can be used to speed up the execution of functions.


Enum Constant Summary
CREATE_ARGUMENTS
          Create the predefined variable, arguments.
CREATE_SUPER
          Create the predefined variable, super.
CREATE_THIS
          Create and initialised the predefined variable, this.
LOAD_ARGUMENTS
          Load the predefine variable, arguments, into register 2.
LOAD_GLOBAL
          Load the predefine variable, _global, into register 6.
LOAD_PARENT
          Load the predefine variable, _parent, into register 5.
LOAD_ROOT
          Load the predefine variable, _root, into register 4.
LOAD_SUPER
          Load the predefine variable, super, into register 3.
LOAD_THIS
          Load the predefine variable, this, into register 1.
 
Method Summary
 int getValue()
          Get the value used to represent the Optimization when encoded.
static NewFunction2.Optimization valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NewFunction2.Optimization[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREATE_SUPER

public static final NewFunction2.Optimization CREATE_SUPER
Create the predefined variable, super.


CREATE_ARGUMENTS

public static final NewFunction2.Optimization CREATE_ARGUMENTS
Create the predefined variable, arguments.


CREATE_THIS

public static final NewFunction2.Optimization CREATE_THIS
Create and initialised the predefined variable, this.


LOAD_THIS

public static final NewFunction2.Optimization LOAD_THIS
Load the predefine variable, this, into register 1.


LOAD_ARGUMENTS

public static final NewFunction2.Optimization LOAD_ARGUMENTS
Load the predefine variable, arguments, into register 2.


LOAD_SUPER

public static final NewFunction2.Optimization LOAD_SUPER
Load the predefine variable, super, into register 3.


LOAD_ROOT

public static final NewFunction2.Optimization LOAD_ROOT
Load the predefine variable, _root, into register 4.


LOAD_PARENT

public static final NewFunction2.Optimization LOAD_PARENT
Load the predefine variable, _parent, into register 5.


LOAD_GLOBAL

public static final NewFunction2.Optimization LOAD_GLOBAL
Load the predefine variable, _global, into register 6.

Method Detail

values

public static NewFunction2.Optimization[] 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 (NewFunction2.Optimization c : NewFunction2.Optimization.values())
    System.out.println(c);

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

valueOf

public static NewFunction2.Optimization valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public int getValue()
Get the value used to represent the Optimization when encoded.

Returns:
the value used to encode the Optimization.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.