org.ijsberg.iglu.util.logic
Class Statement

java.lang.Object
  extended by org.ijsberg.iglu.util.logic.LogicalElement
      extended by org.ijsberg.iglu.util.logic.Statement
Direct Known Subclasses:
Expression

public class Statement
extends LogicalElement

A statement may be evaluated as being 'true' or 'false' but it may also be some string of which its presence may be tested.


Field Summary
protected  String statement
           
 
Fields inherited from class org.ijsberg.iglu.util.logic.LogicalElement
AND, NONE, NOT, operatorStr, OR
 
Constructor Summary
protected Statement()
           
  Statement(String statement)
           
 
Method Summary
 String getStatement()
           
 boolean match(Object[] elements)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statement

protected String statement
Constructor Detail

Statement

protected Statement()

Statement

public Statement(String statement)
Parameters:
statement -
Method Detail

getStatement

public String getStatement()
Returns:

toString

public String toString()
Overrides:
toString in class Object
Returns:

match

public boolean match(Object[] elements)
Parameters:
elements -
Returns:


Copyright © 2011. All Rights Reserved.