Package org.jboss.byteman.agent
Enum Class LocationType
- All Implemented Interfaces:
Serializable
,Comparable<LocationType>
,Constable
enum categorizing types of locations at which rule triggers can be inserted
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionspecifies 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.specifies a location for trigger insertion on exception exit from the trigger method script syntax : 'AT' 'EXCEPTION' 'EXIT'specifies a location for trigger insertion at return from the trigger method n.b.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.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.specifies a location for trigger insertion via a line number.specifies a location for trigger insertion at object allocation script syntax : 'AT' 'NEW' [{typename}] [ '[]'+ ] [ {count} | 'ALL' ]specifies a location for trigger insertion after object allocation and initialization script syntax : 'AFTER' 'NEW' [{typename}] [ '[]'+ ] [ {count} | 'ALL' ]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.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.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.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.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' [{typename}] [ {count} | 'ALL' ] n.b.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.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
FieldsModifier and TypeFieldDescriptionprivate static Pattern[]
private static String[]
private static LocationType[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Pattern[]
static String
parameterText
(String locationSpec) static LocationType
static LocationType
Returns the enum constant of this class with the specified name.static LocationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. script syntax : 'AT' 'ENTRY' -
LINE
specifies a location for trigger insertion via a line number. script syntax : 'AT' 'LINE' {linenumber} -
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. script syntax : 'AT' 'READ' [{typename} '.' ] {fieldname} [ {count} | 'ALL' ] -
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. script syntax : 'AFTER' 'READ' [{typename} '.' ] {fieldname} [ {count} | 'ALL' ] -
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. script syntax : 'AT' 'WRITE' [{typename} '.' ] {fieldname} [ {count} | 'ALL' ] -
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. script syntax : 'AFTER' 'WRITE' [{typename} '.' ] {fieldname} [ {count} | 'ALL' ] -
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. script syntax : 'AT' 'INVOKE' [{typename} '.' ] {methodname} ['(' {argtypes} ')' [ {count} | 'ALL' ] -
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. script syntax : 'AFTER' 'INVOKE' [{typename} '.' ] {methodname} ['(' {argtypes} ')' [ {count} | 'ALL' ] -
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. script syntax : 'AT' 'SYNCHRONIZE' [ {count} | 'ALL' ] -
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. script syntax : 'AFTER' 'SYNCHRONIZE' [ {count} | 'ALL' ] -
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' [{typename}] [ {count} | 'ALL' ] n.b. exception typename parsed but not yet implemented -
EXIT
specifies a location for trigger insertion at return from the trigger method n.b. a trigger will be injected at ALL return points script syntax : 'AT' 'EXIT' -
EXCEPTION_EXIT
specifies a location for trigger insertion on exception exit from the trigger method script syntax : 'AT' 'EXCEPTION' 'EXIT' -
NEW
specifies a location for trigger insertion at object allocation script syntax : 'AT' 'NEW' [{typename}] [ '[]'+ ] [ {count} | 'ALL' ] -
NEW_COMPLETED
specifies a location for trigger insertion after object allocation and initialization script syntax : 'AFTER' 'NEW' [{typename}] [ '[]'+ ] [ {count} | 'ALL' ]
-
-
Field Details
-
specifiers
-
specifierPatterns
-
types
-
-
Constructor Details
-
LocationType
private LocationType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
specifierText
-
type
-
parameterText
-
createPatterns
-