public class OptionalModel extends ModelNode
ContentSpec.rewrite()
is called
on a specification with '?' arity modifier.Constructor and Description |
---|
OptionalModel(ModelNode model) |
Modifier and Type | Method and Description |
---|---|
void |
addFirstPos(BitSet pos) |
void |
addLastPos(BitSet pos) |
void |
calcFollowPos(BitSet[] followPosSets) |
ModelNode |
cloneModel()
Method that has to create a deep copy of the model, without
sharing any of existing Objects.
|
void |
indexTokens(List<TokenModel> tokens) |
boolean |
isNullable() |
String |
toString() |
public OptionalModel(ModelNode model)
public ModelNode cloneModel()
cloneModel
in class ModelNode
public boolean isNullable()
isNullable
in class ModelNode
public void indexTokens(List<TokenModel> tokens)
indexTokens
in class ModelNode
public void addFirstPos(BitSet pos)
addFirstPos
in class ModelNode
public void addLastPos(BitSet pos)
addLastPos
in class ModelNode
public void calcFollowPos(BitSet[] followPosSets)
calcFollowPos
in class ModelNode
Copyright © 2018 FasterXML. All rights reserved.