Modifier and Type | Class and Description |
---|---|
public static interface | PoolConstant.
This interface models a dynamic pool constant (either of kind |
public static interface | PoolConstant.
The root of pool constants that can be loaded (e.g. with |
public static class | PoolConstant.
A pool constant implementation describing a name and type pool entry. |
Modifier and Type | Method and Description |
---|---|
public default Object | |
public int |
poolKey | back to summary |
---|---|
public default Object poolKey(Types types) The constant pool entry key. |
poolTag | back to summary |
---|---|
public int poolTag() The constant pool entry tag. |
InvokeDynamic
or
ConstantDynamic
). In addition to the functionalities provided by the base interface,
a dynamic pool constant must expose its dynamic type, bootstrap method and static argument list.
Finally, a dynamic constant must have a way to compute a bootstrap method key - that is,
a unique key for the bootstrap method entry it refers to, to avoid duplicates when writing
the BootstrapMethods
attribute.
Modifier and Type | Class and Description |
---|---|
public static class | PoolConstant.
A class modelling a bootstrap method key. |
public static record |
Modifier and Type | Method and Description |
---|---|
public PoolConstant. | |
public default PoolConstant. | |
public PoolConstant | |
public Name | |
public default Object | poolKey(Types types)
Overrides default com. |
public PoolConstant. |
bootstrapMethod | back to summary |
---|---|
public PoolConstant. The dynamic constant's bootstrap method. |
bsmKey | back to summary |
---|---|
public default PoolConstant. |
dynamicType | back to summary |
---|---|
public PoolConstant dynamicType() The dynamic constant's dynamic type. |
name | back to summary |
---|---|
public Name name() The dynamic constant's name. |
poolKey | back to summary |
---|---|
public default Object poolKey(Types types) Overrides default com. Doc from com. The constant pool entry key.
|
staticArgs | back to summary |
---|---|
public PoolConstant. The dynamic constant's static argument list. |
Modifier and Type | Field and Description |
---|---|
public final PoolConstant. | bsm
The key's bootstrap method constant. |
private final Object | |
private final List | |
public final PoolConstant. | staticArgs
The key's static argument list. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
public int |
bsm | back to summary |
---|---|
public final PoolConstant. The key's bootstrap method constant. |
bsmKey | back to summary |
---|---|
private final Object bsmKey |
staticArgKeys | back to summary |
---|---|
private final List<?> staticArgKeys |
staticArgs | back to summary |
---|---|
public final PoolConstant. The key's static argument list. |
BsmKey | back to summary |
---|---|
private BsmKey(Types types, PoolConstant. |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
Modifier and Type | Field and Description |
---|---|
private final PoolConstant. | |
private final Object | dynamicType
Record Component accessed by dynamicType(). |
private final Name |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public PoolConstant. | |
public Object | |
public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. |
public final int | |
public Name | |
public final String | toString()
Implements abstract java. |
bsmKey | back to summary |
---|---|
private final PoolConstant. Record Component accessed by bsmKey(). |
dynamicType | back to summary |
---|---|
private final Object dynamicType Record Component accessed by dynamicType(). |
name | back to summary |
---|---|
private final Name name Record Component accessed by name(). |
PoolKey | back to summary |
---|---|
public PoolKey(Name name, PoolConstant. |
bsmKey | back to summary |
---|---|
public PoolConstant. Record Component getter of bsmKey. |
dynamicType | back to summary |
---|---|
public Object dynamicType() Record Component getter of dynamicType. |
equals | back to summary |
---|---|
public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of R copy = new R(r.c1(), r.c2(), ..., r.cn());then it must be the case that r.equals(copy) .
|
hashCode | back to summary |
---|---|
public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
|
name | back to summary |
---|---|
public Name name() Record Component getter of name. |
toString | back to summary |
---|---|
public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
|
ldc
, or appear as static
arguments to a bootstrap method.
Modifier and Type | Class and Description |
---|---|
public static class | PoolConstant.
This class models a pool constant of given basic type, one of |
Modifier and Type | Method and Description |
---|---|
public static PoolConstant. | |
public static PoolConstant. | |
public static PoolConstant. | |
public static PoolConstant. | |
public static PoolConstant. |
Double | back to summary |
---|---|
public static PoolConstant. Create a pool constant describing a given |
Float | back to summary |
---|---|
public static PoolConstant. Create a pool constant describing a given |
Int | back to summary |
---|---|
public static PoolConstant. Create a pool constant describing a given |
Long | back to summary |
---|---|
public static PoolConstant. Create a pool constant describing a given |
String | back to summary |
---|---|
public static PoolConstant. Create a pool constant describing a given |
int
, float
,
long
, double
or String
.
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public Object | poolKey(Types types)
Overrides default com. |
public int |
BasicConstant | back to summary |
---|---|
private BasicConstant(int tag, Object data) |
poolKey | back to summary |
---|---|
public Object poolKey(Types types) Overrides default com. Doc from com. The constant pool entry key.
|
poolTag | back to summary |
---|---|
public int poolTag() Implements com. Doc from com. The constant pool entry tag.
|
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public Object | poolKey(Types types)
Overrides default com. |
public int |
name | back to summary |
---|---|
pack-priv final Name name |
type | back to summary |
---|---|
pack-priv final Type type |
NameAndType | back to summary |
---|---|
pack-priv NameAndType(Name name, Type type) |
poolKey | back to summary |
---|---|
public Object poolKey(Types types) Overrides default com. Doc from com. The constant pool entry key.
|
poolTag | back to summary |
---|---|
public int poolTag() Implements com. Doc from com. The constant pool entry tag.
|