Serializable
, Comparable<StandardOperation>
, Operation
public enum StandardOperation extends Enum<StandardOperation> implements Operation
GET
and SET
must
be used as part of a NamespaceOperation
. NamedOperation
can then be further used on these
NamespaceOperation
s to bind the name parameter of GET
and SET
operations, in which case it
disappears from their type signature.
NamedOperation
can also be used to decorate CALL
and NEW
operations with a
diagnostic name, and as such it does not affect their type signature.Enum Constant | Description |
---|---|
CALL |
Call a callable object.
|
GET |
Get the value from a namespace defined on an object.
|
NEW |
Call a constructor object.
|
SET |
Set the value in a namespace defined on an object.
|
Modifier and Type | Method | 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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
named, withNamespace, withNamespaces
public static final StandardOperation GET
NamedOperation
, with
all parameters and return type being of any type (either primitive or
reference). This operation must always be used as part of a NamespaceOperation
.public static final StandardOperation SET
NamedOperation
,
with all parameters and return type being of any type (either primitive
or reference). This operation must always be used as part of a NamespaceOperation
.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 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 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 Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b149-1