public class ConstantPool extends Object implements Serializable
ConstantPoolKey values that have already been sent to
the client.
For internal use only. May be renamed or removed in a future release.
| Constructor and Description |
|---|
ConstantPool() |
| Modifier and Type | Method and Description |
|---|---|
elemental.json.JsonObject |
dumpConstants()
Encodes all new constants to a JSON object and marks those constants as
non-new.
|
String |
getConstantId(ConstantPoolKey constant)
Gets the id of a given constant, registering the constant with this
constant pool if it hasn't already been encountered.
|
boolean |
hasNewConstants()
Checks if any new constants have been added to this constant pool since
the last time
dumpConstants() was called. |
public String getConstantId(ConstantPoolKey constant)
constant - the constant reference to get an id for, not nullnulldumpConstants()public boolean hasNewConstants()
dumpConstants() was called.true if there are new constants, false
otherwisepublic elemental.json.JsonObject dumpConstants()
Copyright © 2025. All rights reserved.