Object-oriented Parser System
v3.6

mops
Class Result

Object
  extended by Result

public class Result
extends Object

result of using parse parse on Input.


Field Summary
 boolean failed
           
 Input input
           
 Object value
           
 
Constructor Summary
Result(Input input, String message)
          fail.
Result(Object value, Input input)
          succeed.
 
Method Summary
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

failed

public final boolean failed

value

public final Object value

input

public final Input input
Constructor Detail

Result

public Result(Object value,
              Input input)
succeed.


Result

public Result(Input input,
              String message)
fail.

Parameters:
message - should describe the error, stored as value.
Method Detail

toString

public String toString()
Overrides:
toString in class Object


(c) 2008 Axel T. Schreiner