public final class BasicNonterminal extends Object implements Nonterminal
Exactly one object is created for every label.
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicNonterminal.Factory |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel() |
int |
getRank() |
int |
hashCode() |
boolean |
isReductionTentacle(int tentacle) |
void |
setReductionTentacle(int tentacle) |
String |
toString() |
void |
unsetReductionTentacle(int tentacle) |
public int getRank()
getRank in interface Nonterminalpublic String getLabel()
getLabel 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".Copyright © 2019. All rights reserved.