net.sf.sasl.language.placeholder.aop.interpreter
Enum TargetMethodExecutionPhase

java.lang.Object
  extended by java.lang.Enum<TargetMethodExecutionPhase>
      extended by net.sf.sasl.language.placeholder.aop.interpreter.TargetMethodExecutionPhase
All Implemented Interfaces:
Serializable, Comparable<TargetMethodExecutionPhase>

public enum TargetMethodExecutionPhase
extends Enum<TargetMethodExecutionPhase>

Defines phases of a target method invocation at which a placeholder script could gets interpreted.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Enum Constant Summary
EXCEPTION
          Defines the phase after the target method completed abnormally with an exception.
INVOCATION
          Defines the phase before the target method gets called.
SUCCESS
          Defines the phase after the target method completed successfully with a computed result value.
 
Method Summary
static TargetMethodExecutionPhase valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TargetMethodExecutionPhase[] 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

INVOCATION

public static final TargetMethodExecutionPhase INVOCATION
Defines the phase before the target method gets called.

Since:
0.0.1 (sasl-common-aspect-library)

EXCEPTION

public static final TargetMethodExecutionPhase EXCEPTION
Defines the phase after the target method completed abnormally with an exception.

Since:
0.0.1 (sasl-common-aspect-library)

SUCCESS

public static final TargetMethodExecutionPhase SUCCESS
Defines the phase after the target method completed successfully with a computed result value.

Since:
0.0.1 (sasl-common-aspect-library)
Method Detail

values

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

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

valueOf

public static TargetMethodExecutionPhase 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


Copyright © 2010. All Rights Reserved.