public abstract class Token extends EquPart
Abstract Token class.
Constructor and Description |
---|
Token()
Constructor for Token.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(char c)
accepts.
|
void |
addTo(Collection<EquPart> tokens)
addTo.
|
StringBuffer |
getValue()
Getter for the field
value . |
static Token |
instanceFor(char c)
instanceFor.
|
protected EquPart |
morph()
morph.
|
void |
put(char c)
put.
|
void |
setValue(StringBuffer newValue)
Setter for the field
value . |
String |
toString() |
public static Token instanceFor(char c)
instanceFor.
c
- a char.Token
object.public boolean accepts(char c)
accepts.
c
- any value is ok, and ignored in this methodpublic void addTo(Collection<EquPart> tokens) throws Exception
addTo.
tokens
- a Collection
object.Exception
- if any.public StringBuffer getValue()
Getter for the field value
.
StringBuffer
object.public void put(char c)
put.
c
- a char.public void setValue(StringBuffer newValue)
Setter for the field value
.
newValue
- a StringBuffer
object.Copyright © 2018 CodeTaco. All rights reserved.