michaelinux / mini-java

Automatically exported from code.google.com/p/mini-java
0 stars 0 forks source link

Add InputConvertor.add(Object) #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
add(Object) is used to add new object inputs into the InputConvertor; and
convert(Object) should return null for unknown inputs.

Original issue reported on code.google.com by lemontree.cool on 4 Oct 2008 at 1:52

GoogleCodeExporter commented 9 years ago
* make InputConvertor an interface with only two methods
* add InputConvertorImpl, the default implementation of the InputConvertor 
interface
with an extra add() method
* NFAAdapter(SimpleFA) should create a dummy implementation of InputConvertor 
that
will convert the type of input from Object to Character if it is really a 
Character
object; otherwise, it should return null. This can be both a 
InputConvertorDummyImpl
or an anonymous class

Original comment by lemontree.cool on 4 Oct 2008 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by lemontree.cool on 21 May 2009 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by lemontree.cool on 21 May 2009 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by lemontree.cool on 18 Jul 2009 at 2:27