|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanbikel.util.Pair
danbikel.parser.SymbolPair
public class SymbolPair
A simple class for holding a pair of Symbol objects.
| Field Summary |
|---|
| Fields inherited from class danbikel.util.Pair |
|---|
first, second |
| Constructor Summary | |
|---|---|
SymbolPair()
Constructs an empty pair of symbols (both objects are null). |
|
SymbolPair(Sexp sexp)
Constructs a SymbolPair from the first two symbols in the specified
list. |
|
SymbolPair(Symbol first,
Symbol second)
Constructs a new symbol pair from the specified symbols. |
|
| Method Summary | |
|---|---|
Symbol |
first()
Returns the first symbol in this pair. |
Symbol |
second()
Returns the second symbol in this pair. |
String |
toString()
Returns an S-expression list string representation of this symbol pair. |
| Methods inherited from class danbikel.util.Pair |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolPair()
null).
public SymbolPair(Sexp sexp)
SymbolPair from the first two symbols in the specified
list. If the specified S-expression is not of type SexpList,
or if the specified list does not have Symbol objects as its
first two elements, this method will throw an ClassCastException.
sexp - the list whose first two symbol elements will be made into
the two elements of this symbol pair
public SymbolPair(Symbol first,
Symbol second)
first - the first symbolsecond - the second symbol| Method Detail |
|---|
public final Symbol first()
public final Symbol second()
public String toString()
toString in class Pair
|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||