APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.dynalink

public final Enum StandardNamespace

extends Enum<StandardNamespace>
implements Namespace
Class Inheritance
All Implemented Interfaces
jdk.dynalink.Namespace

An enumeration of standard namespaces defined by Dynalink.
Since
9

Field Summary

Modifier and TypeField and Description
public static final StandardNamespace
ELEMENT

Standard namespace for elements of a collection object.

public static final StandardNamespace
METHOD

Standard namespace for methods of an object.

public static final StandardNamespace
PROPERTY

Standard namespace for properties of an object.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static StandardNamespace

Returns:

the first standard namespace in the operation's namespace list
findFirst
(final Operation
the operation
op
)

If the passed in operation is a NamespaceOperation, or a NamedOperation wrapping a NamespaceOperation, then it returns the first (if any) StandardNamespace in its namespace list.

public static StandardNamespace
public static StandardNamespace[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ELEMENTback to summary
public static final StandardNamespace ELEMENT

Standard namespace for elements of a collection object.

METHODback to summary
public static final StandardNamespace METHOD

Standard namespace for methods of an object. The method objects retrieved through a StandardOperation#GET on this namespace can be (and where object semantics allows they should be) unbound, that is: not bound to the object they were retrieved through. When they are used with StandardOperation#CALL an explicit "this" receiver argument is always passed to them. Of course bound methods can be returned if the object semantics requires them and such methods are free to ignore the receiver passed in the CALL operation or even raise an error when it is different from the one the method is bound to, or exhibit any other behavior their semantics requires in such case.

PROPERTYback to summary
public static final StandardNamespace PROPERTY

Standard namespace for properties of an object.

Constructor Detail

StandardNamespaceback to summary
private StandardNamespace()

Method Detail

findFirstback to summary
public static StandardNamespace findFirst(final Operation op)

If the passed in operation is a NamespaceOperation, or a NamedOperation wrapping a NamespaceOperation, then it returns the first (if any) StandardNamespace in its namespace list. If the passed operation is not a namespace operation (optionally wrapped in a named operation), or if it doesn't have any standard namespaces in it, returns null.

Parameters
op:Operation

the operation

Returns:StandardNamespace

the first standard namespace in the operation's namespace list

valueOfback to summary
public static StandardNamespace valueOf(String name)
valuesback to summary
public static StandardNamespace[] values()