jfun.parsec

Class String2Value

public class String2Value extends Object implements FromString

This implementation of FromString simply returns an object for any parameter.

Author: Ben Yu Mar 29, 2006 9:57:03 PM

Constructor Summary
String2Value(Object val)
Create a String2Value instance.
Method Summary
booleanequals(Object obj)
ObjectfromString(int from, int len, String s)
inthashCode()
StringtoString()

Constructor Detail

String2Value

public String2Value(Object val)
Create a String2Value instance.

Parameters: val the value to be returned by String2Value

Method Detail

equals

public boolean equals(Object obj)

fromString

public Object fromString(int from, int len, String s)

hashCode

public int hashCode()

toString

public String toString()