|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.sourceforge.chaperon.model.extended.Pattern
net.sourceforge.chaperon.model.extended.PatternList
net.sourceforge.chaperon.model.extended.Definition
public class Definition
This class presents a definition of a grammar
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern |
|---|
index |
| Constructor Summary | |
|---|---|
Definition()
Create an empty definition. |
|
Definition(java.lang.String symbol)
Create a definition. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Create a clone this pattern. |
boolean |
equals(java.lang.Object o)
Compares the definition with another definition. |
java.lang.String |
getLocation()
Returns the location from the input source. |
java.lang.String |
getSymbol()
Return the symbol from this definition |
void |
setLocation(java.lang.String location)
Set the location from the input source. |
void |
setSymbol(java.lang.String symbol)
Set the symbol for this definition |
java.lang.String |
toString(PatternSet previous,
PatternSet next)
Return a string representation of the definition. |
Violations |
validate()
Validates the definition. |
| Methods inherited from class net.sourceforge.chaperon.model.extended.PatternList |
|---|
addPattern, contains, contains, getAllPattern, getFirstSet, getLastSet, getLimits, getPattern, getPattern, getPatternAsArray, getPatternCount, isNullable, toString, update |
| Methods inherited from class net.sourceforge.chaperon.model.extended.Pattern |
|---|
addAscendingSuccessor, addDescendingSuccessor, addSuccessor, getAncestors, getAscendingAncestors, getAscendingSuccessors, getDefinition, getDescendingAncestors, getDescendingSuccessors, getSuccessors, hasAncestor, hasAscendingAncestor, hasAscendingSuccessor, hasDescendingAncestor, hasDescendingSuccessor, hasSuccessor, setDefinition |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Definition()
public Definition(java.lang.String symbol)
ntsymbol - The symbol of this definition.| Method Detail |
|---|
public void setSymbol(java.lang.String symbol)
ntsymbol - Non terminal symbolpublic java.lang.String getSymbol()
getSymbol in class PatternListpublic void setLocation(java.lang.String location)
setLocation in class Patternlocation - Location in the input source.public java.lang.String getLocation()
getLocation in class Patternpublic Violations validate()
validate in class Patternpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Other object.
public java.lang.String toString(PatternSet previous,
PatternSet next)
toString in class PatternList
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Pattern
clone in class Patternjava.lang.CloneNotSupportedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||