public class InstantiationProposerCollection extends Object implements InstantiationProposer
Modifier and Type | Field and Description |
---|---|
private ImmutableList<InstantiationProposer> |
proposers |
Constructor and Description |
---|
InstantiationProposerCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(InstantiationProposer proposer)
adds an instantiation proposer to the collection
|
String |
getProposal(TacletApp app,
SchemaVariable var,
Services services,
Node undoAnchor,
ImmutableList<String> previousProposals)
Returns an instantiation proposal for the schema variable var.
|
private ImmutableList<InstantiationProposer> proposers
public void add(InstantiationProposer proposer)
public String getProposal(TacletApp app, SchemaVariable var, Services services, Node undoAnchor, ImmutableList<String> previousProposals)
InstantiationProposer
getProposal
in interface InstantiationProposer
app
- the taclet appvar
- the schema variable to be instantiatedservices
- pointer to services objectundoAnchor
- node to be used as undo anchorpreviousProposals
- a list of other proposals which should be taken
into account (e.g. for name uniqueness), or null