|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--sjm.examples.string.StringFunction
|
+--sjm.examples.string.Trim
This class wraps a trim function around an
instance of another StringFunction class.
| Fields inherited from class sjm.examples.string.StringFunction |
source |
| Constructor Summary | |
Trim()
Construct a Trim function around the identity
function, so that this object will just trim a supplied
string. |
|
Trim(StringFunction source)
Construct a Trim function that will
wrap itself around the supplied source. |
|
| Method Summary | |
java.lang.String |
f(java.lang.String s)
Return a trimmed version of the value of
source.f(s), where s is the supplied
string, and source is this function's source
function. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Trim()
Trim function around the identity
function, so that this object will just trim a supplied
string.public Trim(StringFunction source)
Trim function that will
wrap itself around the supplied source.| Method Detail |
public java.lang.String f(java.lang.String s)
source.f(s), where s is the supplied
string, and source is this function's source
function.
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||