|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.Entity
dk.brics.grammar.TerminalEntity
dk.brics.grammar.RegexpTerminalEntity
public class RegexpTerminalEntity
A regexp terminal.
| Constructor Summary | |
|---|---|
RegexpTerminalEntity(Automaton a,
boolean max,
String aname,
String label,
String example)
Constructs a new regexp terminal. |
|
| Method Summary | ||
|---|---|---|
Automaton |
getAutomaton()
Returns the automaton of this regexp terminal. |
|
String |
getAutomatonName()
Returns the name of this regexp terminal. |
|
boolean |
isMax()
Returns true if this regexp terminal is maximal match. |
|
String |
toString()
Returns string representation of this entity. |
|
|
visitBy(EntityVisitor<T> v)
Visits this entity with the given visitor. |
|
| Methods inherited from class dk.brics.grammar.Entity |
|---|
getExample, getLabel, isExplicitlyLabeled, isLabeled, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegexpTerminalEntity(Automaton a,
boolean max,
String aname,
String label,
String example)
a - automaton representing the regexpmax - if true, maximal match onlyaname - name of regexplabel - entity label, null if ignorableexample - example string, null if absent| Method Detail |
|---|
public Automaton getAutomaton()
public String getAutomatonName()
public boolean isMax()
public String toString()
toString in class Objectpublic <T> T visitBy(EntityVisitor<T> v)
Entity
visitBy in class Entityv - entity visitor
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||