public enum StandardOperation extends Enum<StandardOperation> implements Operation
CompositeOperation
, and
NamedOperation
can be used to bind the name parameter of operations
that take one, in which case it disappears from the type signature.Enum Constant and Description |
---|
CALL
Calls a callable object.
|
CALL_METHOD
Calls a method defined on an object.
|
GET_ELEMENT
Get the value of an element of a collection.
|
GET_LENGTH
Get the length of an array or size of a collection.
|
GET_METHOD
Gets an object representing a method defined on an object.
|
GET_PROPERTY
Get the value of a property defined on an object.
|
NEW
Calls a constructor object.
|
SET_ELEMENT
Set the value of an element of a collection.
|
SET_PROPERTY
Set the value of a property defined on an object.
|
Modifier and Type | Method and Description |
---|---|
static StandardOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardOperation CALL
NamedOperation
even though it does not take a name. Using it with
a named operation won't affect its signature; the name is solely meant to
be used as a diagnostic description for error messages.public static final StandardOperation CALL_METHOD
NamedOperation
,
with all parameters and return type being of any type (either primitive
or reference).public static final StandardOperation GET_ELEMENT
NamedOperation
, with
all parameters and return type being of any type (either primitive or
reference).public static final StandardOperation GET_LENGTH
public static final StandardOperation GET_METHOD
NamedOperation
with all parameters and return type being of any type (either primitive
or reference).public static final StandardOperation GET_PROPERTY
NamedOperation
, with
all parameters and return type being of any type (either primitive or
reference).public static final StandardOperation NEW
NamedOperation
even though it does not take a name. Using it with
a named operation won't affect its signature; the name is solely meant to
be used as a diagnostic description for error messages.public static final StandardOperation SET_ELEMENT
NamedOperation
,
with all parameters and return type being of any type (either primitive
or reference).public static final StandardOperation SET_PROPERTY
NamedOperation
,
with all parameters and return type being of any type (either primitive
or reference).public static StandardOperation[] values()
for (StandardOperation c : StandardOperation.values()) System.out.println(c);
public static StandardOperation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-25-041322.buildd.src