|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LocationType>
org.jboss.byteman.agent.LocationType
public enum LocationType
enum categorizing types of locations at which rule triggers can be inserted
Enum Constant Summary | |
---|---|
ENTRY
specifies the default location for trigger insertion which is either the first line of a method or the first line of a constructor following any indirection via an alternative constructor or via the super constructor. |
|
EXIT
specifies a location for trigger insertion at return from the trigger method n.b. |
|
INVOKE
specifies a location for trigger insertion by identifying a method invoke operation or the nth such method invoke if a count is supplied or all method invocations if ALL is specified. |
|
INVOKE_COMPLETED
specifies a location for trigger insertion by identifying return from a method invoke operation or the nth such return if a count is supplied or all method invocations if ALL is specified. |
|
LINE
specifies a location for trigger insertion via a line number. |
|
READ
specifies a location for trigger insertion by identifying a field read operation or the nth such field read if a count is supplied or all field reads if ALL is specified. |
|
READ_COMPLETED
specifies a location for trigger insertion by identifying a field read operation or the nth such field read if a count is supplied or all field reads if ALL is specified. |
|
SYNCHRONIZE
specifies a location for trigger insertion by identifying a synchronize operation or the nth such operation if a count is supplied or all synchronize operations if ALL is specified. |
|
SYNCHRONIZE_COMPLETED
specifies a location for trigger insertion by identifying completion of a synchronize operation or the nth such operation if a count is supplied or all synchronize operations if ALL is specified. |
|
THROW
specifies a location for trigger insertion by identifying throw of an exception of the nth such throw if a count is supplied or all throws if ALL is specified script syntax : 'AT' 'THROW' [ |
|
WRITE
specifies a location for trigger insertion by identifying a field write operation or the nth such field write if a count is supplied or all field writes if ALL is specified. |
|
WRITE_COMPLETED
specifies a location for trigger insertion by identifying a field write operation or the nth such field write if a count is supplied or all field writes if ALL is specified. |
Field Summary | |
---|---|
private static java.util.regex.Pattern[] |
specifierPatterns
|
private static java.lang.String[] |
specifiers
|
private static LocationType[] |
types
|
Method Summary | |
---|---|
private static java.util.regex.Pattern[] |
createPatterns()
|
static java.lang.String |
parameterText(java.lang.String locationSpec)
|
java.lang.String |
specifierText()
|
static LocationType |
type(java.lang.String locationSpec)
|
static LocationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LocationType[] |
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 |
---|
public static final LocationType ENTRY
public static final LocationType LINE
public static final LocationType READ
public static final LocationType READ_COMPLETED
public static final LocationType WRITE
public static final LocationType WRITE_COMPLETED
public static final LocationType INVOKE
public static final LocationType INVOKE_COMPLETED
public static final LocationType SYNCHRONIZE
public static final LocationType SYNCHRONIZE_COMPLETED
public static final LocationType THROW
public static final LocationType EXIT
Field Detail |
---|
private static java.lang.String[] specifiers
private static java.util.regex.Pattern[] specifierPatterns
private static LocationType[] types
Method Detail |
---|
public static LocationType[] values()
for (LocationType c : LocationType.values()) System.out.println(c);
public static LocationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String specifierText()
public static LocationType type(java.lang.String locationSpec)
public static java.lang.String parameterText(java.lang.String locationSpec)
private static java.util.regex.Pattern[] createPatterns()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |