org.vmmagic.pragma
Enum Inline.When

java.lang.Object
  extended by java.lang.Enum<Inline.When>
      extended by org.vmmagic.pragma.Inline.When
All Implemented Interfaces:
Serializable, Comparable<Inline.When>
Enclosing class:
Inline

public static enum Inline.When
extends Enum<Inline.When>

Enumeration defining when to inline


Enum Constant Summary
AllArgumentsAreConstant
          Inline when all the arguments are constants
Always
          Always inline, regardless of arguments
ArgumentsAreConstant
          Inline when the specified arguments are constants
AssertionsDisabled
          Inline when the VM is built without Assertions (VM.VerifyAssertions == false).
 
Method Summary
static Inline.When valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Inline.When[] 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

Always

public static final Inline.When Always
Always inline, regardless of arguments


AllArgumentsAreConstant

public static final Inline.When AllArgumentsAreConstant
Inline when all the arguments are constants


ArgumentsAreConstant

public static final Inline.When ArgumentsAreConstant
Inline when the specified arguments are constants


AssertionsDisabled

public static final Inline.When AssertionsDisabled
Inline when the VM is built without Assertions (VM.VerifyAssertions == false). Note: It would be nicer to have the more general ExpressionIsTrue annotation, but the argument expression to the annotation is restricted to be a fairly trivial constant, and that isn't enough to handle how VM.VERIFY_ASSERTIONS is defined in MMTk.

Method Detail

values

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

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

valueOf

public static Inline.When 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