public class ConstantPool extends Object implements Serializable
ConstantPoolKey
values that have already been sent to
the client.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 null
null
dumpConstants()
public boolean hasNewConstants()
dumpConstants()
was called.true
if there are new constants, false
otherwisepublic elemental.json.JsonObject dumpConstants()
Copyright © 2019. All rights reserved.