All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xsl.NumberResult
com.kvisco.xsl.NumberResult
- public class NumberResult
- implements ExprResult
Represents a Number result
-
NumberResult()
- Creates a new NumberResult with the default value
-
NumberResult(double)
- Creates a new NumberResult with the given value
-
booleanValue()
- Returns the value of this ExprResult as a boolean
-
equals(ExprResult)
- Returns true if the given ExprResult is of the same type
of this ExprResult, and their values are equal.
-
getResultType()
- Returns the type of this ExprResult
-
numberValue()
- Returns the value of this ExprResult as a double
-
setValue(double)
- Sets the value of this NumberResult
-
toJavaObject()
- Returns the Java Object this ExprResult represents
-
toString()
- Returns the value of this ExprResult as a String
NumberResult
public NumberResult()
- Creates a new NumberResult with the default value
NumberResult
public NumberResult(double value)
- Creates a new NumberResult with the given value
booleanValue
public boolean booleanValue()
- Returns the value of this ExprResult as a boolean
- Returns:
- the value of this ExprResult as a boolean
equals
public boolean equals(ExprResult exprResult)
- Returns true if the given ExprResult is of the same type
of this ExprResult, and their values are equal.
- Returns:
- true if the given ExprResult is of the same type
of this ExprResult, and their values are equal. otherwise
false.
numberValue
public double numberValue()
- Returns the value of this ExprResult as a double
- Returns:
- the value of this ExprResult as a double
getResultType
public short getResultType()
- Returns the type of this ExprResult
- Returns:
- the type of this ExprResult
- See Also:
- ExprResult
setValue
public void setValue(double value)
- Sets the value of this NumberResult
- Parameters:
- value - the double value to use as the result value
toJavaObject
public Object toJavaObject()
- Returns the Java Object this ExprResult represents
- Returns:
- the Java Object this ExprResult represents
toString
public String toString()
- Returns the value of this ExprResult as a String
- Returns:
- the value of this ExprResult as a String
All Packages Class Hierarchy This Package Previous Next Index