APIdia Launch Partner
Top Description Methods
jdk.dynalink

public Interface Operation

Known Direct Implementers
jdk.dynalink.StandardOperation, jdk.dynalink.NamedOperation, jdk.dynalink.NamespaceOperation

An object that describes a dynamic operation. Dynalink defines a set of standard operations with the StandardOperation class, as well as a way to express the target namespace(s) of an operation on an object using NamespaceOperation and finally a way to attach a fixed target name to an operation using NamedOperation. When presenting examples in this documentation, we will refer to standard operations using their name (e.g. GET), to namespace operations by separating their base operation with a colon from their namespace (e.g. GET:PROPERTY), or in case of multiple namespaces we will further separate those with the vertical line character (e.g. GET:PROPERTY|ELEMENT), and finally we will refer to named operations by separating the base operation and the name with the colon character (e.g. GET:PROPERTY|ELEMENT:color).
Since
9

Method Summary

Modifier and TypeMethod and Description
public default NamedOperation

Returns:

a NamedOperation with this operation as its base and the specified name.
named
(final Object
the name that is the target of the named operation.
name
)

Returns a NamedOperation using this operation as its base.

public default NamespaceOperation

Returns:

a NamespaceOperation with this operation as its base and the specified namespace as its target.
withNamespace
(final Namespace
the namespace that is the target of the namespace operation.
namespace
)

Returns a NamespaceOperation using this operation as its base.

public default NamespaceOperation

Returns:

a NamespaceOperation with this operation as its base and the specified namespaces as its targets.
withNamespaces
(final Namespace...
the namespaces that are the target of the namespace operation.
namespaces
)

Returns a NamespaceOperation using this operation as its base.

Method Detail

namedback to summary
public default NamedOperation named(final Object name)

Returns a NamedOperation using this operation as its base.

Parameters
name:Object

the name that is the target of the named operation.

Returns:NamedOperation

a NamedOperation with this operation as its base and the specified name.

Exceptions
IllegalArgumentException:
if this operation is already a named operation.
NullPointerException:
if name is null.
withNamespaceback to summary
public default NamespaceOperation withNamespace(final Namespace namespace)

Returns a NamespaceOperation using this operation as its base.

Parameters
namespace:Namespace

the namespace that is the target of the namespace operation.

Returns:NamespaceOperation

a NamespaceOperation with this operation as its base and the specified namespace as its target.

Exceptions
IllegalArgumentException:
if this operation is already a namespace operation or a named operation.
NullPointerException:
if namespace is null.
withNamespacesback to summary
public default NamespaceOperation withNamespaces(final Namespace... namespaces)

Returns a NamespaceOperation using this operation as its base.

Parameters
namespaces:Namespace[]

the namespaces that are the target of the namespace operation.

Returns:NamespaceOperation

a NamespaceOperation with this operation as its base and the specified namespaces as its targets.

Exceptions
IllegalArgumentException:
if this operation is already a namespace operation or a named operation.
NullPointerException:
if namespace or any of its elements is null.