public class FieldAccessTest
extends java.lang.Object
Monitoring must be enabled via the agent JVM parameter!
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ID_INSTANCE
Defines the recorder identification for the instance attribute access.
|
private static java.lang.String |
ID_STATIC
Defines the recorder identification for the static attribute access.
|
private int |
instanceField
Defines an instance attribute.
|
private static int |
NEWVALUE_INSTANCE
Defines the new value for the instance field.
|
private static int |
NEWVALUE_STATIC
Defines the new value for the static field.
|
private static int |
staticField
Defines a static attribute.
|
| Modifier | Constructor and Description |
|---|---|
private |
FieldAccessTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
asserts()
The automated tests using assert statements.
|
private static void |
execute()
Executes the tests.
|
static void |
main(java.lang.String[] args)
Aims at reading / writing to both attributes.
|
private static final java.lang.String ID_STATIC
private static final java.lang.String ID_INSTANCE
private static final int NEWVALUE_STATIC
private static final int NEWVALUE_INSTANCE
private static int staticField
private int instanceField
private FieldAccessTest()
private static void execute()
public static void main(java.lang.String[] args)
args - command line arguments (ignored)public static void asserts()
EndSystem
annotation.