public class InstantiationProposerCollection extends java.lang.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
|
java.lang.String |
getProposal(TacletApp app,
SchemaVariable var,
Services services,
Node undoAnchor,
ImmutableList<java.lang.String> previousProposals)
Returns an instantiation proposal for the schema variable var.
|
private ImmutableList<InstantiationProposer> proposers
public void add(InstantiationProposer proposer)
public java.lang.String getProposal(TacletApp app, SchemaVariable var, Services services, Node undoAnchor, ImmutableList<java.lang.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