public static enum InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper extends Enum<InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper>
Modifier and Type | Class and Description |
---|---|
protected class |
InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.WrappingArgumentProvider
An argument provider that loads a primitive value from the constant pool and wraps it.
|
Enum Constant and Description |
---|
BOOLEAN
Stores a
Boolean as a boolean and wraps it on load. |
BYTE
Stores a
Byte as a byte and wraps it on load. |
CHARACTER
Stores a
Character as a char and wraps it on load. |
DOUBLE
Stores a
Double as a double and wraps it on load. |
FLOAT
Stores a
Float as a float and wraps it on load. |
INTEGER
Stores a
Integer as a int and wraps it on load. |
LONG
Stores a
Long as a long and wraps it on load. |
SHORT
Stores a
Short as a short and wraps it on load. |
Modifier and Type | Method and Description |
---|---|
protected abstract InvokeDynamic.InvocationProvider.ArgumentProvider |
make(Object value)
Creates an argument provider for a given primitive value.
|
static InvokeDynamic.InvocationProvider.ArgumentProvider |
of(Object value)
Represents the given value by a constant pool value or as a field if this is not possible.
|
String |
toString() |
static InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper BOOLEAN
Boolean
as a boolean
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper BYTE
Byte
as a byte
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper SHORT
Short
as a short
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper CHARACTER
Character
as a char
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper INTEGER
Integer
as a int
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper LONG
Long
as a long
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper FLOAT
Float
as a float
and wraps it on load.public static final InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper DOUBLE
Double
as a double
and wraps it on load.public static InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper[] values()
for (InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper c : InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper.values()) System.out.println(c);
public static InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper 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 nullpublic static InvokeDynamic.InvocationProvider.ArgumentProvider of(Object value)
value
- The value to provide to the bootstrapped method.protected abstract InvokeDynamic.InvocationProvider.ArgumentProvider make(Object value)
value
- The wrapper-type value to provide to the bootstrapped method.public String toString()
toString
in class Enum<InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper>
Copyright © 2014–2016. All rights reserved.