public class IndexedNonterminalImpl extends Object implements IndexedNonterminal
| Modifier and Type | Field and Description |
|---|---|
protected Nonterminal |
basicNonterminal |
protected Index |
index |
| Modifier | Constructor and Description |
|---|---|
protected |
IndexedNonterminalImpl(Nonterminal basicNonterminal,
Index index) |
|
IndexedNonterminalImpl(Nonterminal basicNonterminal,
List<IndexSymbol> index) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Index |
getIndex() |
String |
getLabel() |
int |
getRank() |
IndexedNonterminal |
getWithIndex(List<IndexSymbol> index) |
IndexedNonterminal |
getWithProlongedIndex(IndexSymbol s) |
IndexedNonterminal |
getWithProlongedIndex(List<IndexSymbol> postfix)
removes the last symbol (indexVariable () or abstractIndexSymbol) and
adds all elements in postfix
|
IndexedNonterminal |
getWithShortenedIndex() |
int |
hashCode() |
boolean |
isReductionTentacle(int tentacle) |
boolean |
matches(NodeLabel obj) |
void |
setReductionTentacle(int tentacle) |
String |
toString() |
void |
unsetReductionTentacle(int tentacle) |
protected final Index index
protected final Nonterminal basicNonterminal
public IndexedNonterminalImpl(Nonterminal basicNonterminal, List<IndexSymbol> index)
protected IndexedNonterminalImpl(Nonterminal basicNonterminal, Index index)
public Index getIndex()
getIndex in interface IndexedNonterminalpublic IndexedNonterminal getWithShortenedIndex()
getWithShortenedIndex in interface IndexedNonterminalpublic IndexedNonterminal getWithProlongedIndex(IndexSymbol s)
getWithProlongedIndex in interface IndexedNonterminalpublic IndexedNonterminal getWithProlongedIndex(List<IndexSymbol> postfix)
IndexedNonterminalgetWithProlongedIndex in interface IndexedNonterminalpostfix - The postfix to prolong the indexpublic IndexedNonterminal getWithIndex(List<IndexSymbol> index)
getWithIndex in interface IndexedNonterminalpublic boolean matches(NodeLabel obj)
public int getRank()
getRank in interface Nonterminalpublic boolean isReductionTentacle(int tentacle)
isReductionTentacle in interface Nonterminaltentacle - The position in the sequence of attached nodes that should be checked.public void setReductionTentacle(int tentacle)
setReductionTentacle in interface Nonterminaltentacle - The position in the sequence of attached nodes that should be marked
as a reduction tentacle.public void unsetReductionTentacle(int tentacle)
unsetReductionTentacle in interface Nonterminaltentacle - The position in the sequence of attached nodes that should be marked
as "not a reduction tentacle".public String getLabel()
getLabel in interface NonterminalCopyright © 2019. All rights reserved.