com.miginfocom.util.expression
Class StaticExpression

java.lang.Object
  extended by com.miginfocom.util.expression.StaticExpression
All Implemented Interfaces:
Expression, java.io.Serializable

public class StaticExpression
extends java.lang.Object
implements Expression

An expression that always return the boolean from the constructor.

See Also:
Serialized Form

Constructor Summary
StaticExpression(boolean b)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean evaluate(PropertyProvider provider)
          Always returns the boolean from the contructor.
 boolean getBoolean()
          Returns the boolean from the contructor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticExpression

public StaticExpression(boolean b)
Constructor.

Parameters:
b - THe boolean that alwasy will be returned.
Method Detail

evaluate

public final boolean evaluate(PropertyProvider provider)
Always returns the boolean from the contructor.

Specified by:
evaluate in interface Expression
Parameters:
provider - Not useed.
Returns:
The boolean from the contructor.

getBoolean

public boolean getBoolean()
Returns the boolean from the contructor.

Returns:
The boolean from the contructor.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.