Class VariableFloat
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.VariableBase
-
- org.apache.manifoldcf.scriptengine.VariableFloat
-
- All Implemented Interfaces:
Variable
,VariableReference
public class VariableFloat extends VariableBase
Variable class representing an integer.
-
-
Field Summary
Fields Modifier and Type Field Description protected double
value
-
Fields inherited from interface org.apache.manifoldcf.scriptengine.Variable
ATTRIBUTE_BOOLEAN, ATTRIBUTE_CREATEDSTATUS, ATTRIBUTE_DICT, ATTRIBUTE_FLOAT, ATTRIBUTE_INT, ATTRIBUTE_NOTFOUNDSTATUS, ATTRIBUTE_OKSTATUS, ATTRIBUTE_SCRIPT, ATTRIBUTE_SIZE, ATTRIBUTE_STRING, ATTRIBUTE_TYPE, ATTRIBUTE_UNAUTHORIZEDSTATUS, ATTRIBUTE_VALUE
-
-
Constructor Summary
Constructors Constructor Description VariableFloat(double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableReference
asterisk(Variable v)
VariableReference
doubleEquals(Variable v)
boolean
equals(java.lang.Object o)
VariableReference
exclamationEquals(Variable v)
double
getDoubleValue()
Get the variable's value as a doubleint
getIntValue()
Get the variable's value as an integerjava.lang.String
getScriptValue()
Get the variable's script valuejava.lang.String
getStringValue()
Get the variable's value as a stringVariableReference
greaterAngle(Variable v)
VariableReference
greaterAngleEquals(Variable v)
boolean
hasDoubleValue()
Check if the variable has a double valueint
hashCode()
boolean
hasIntValue()
Check if the variable has an int valueboolean
hasScriptValue()
Check if the variable has a script valueboolean
hasStringValue()
Check if the variable has a string valueVariableReference
lesserAngle(Variable v)
VariableReference
lesserAngleEquals(Variable v)
VariableReference
minus(Variable v)
VariableReference
plus(Variable v)
VariableReference
slash(Variable v)
VariableReference
unaryMinus()
-
Methods inherited from class org.apache.manifoldcf.scriptengine.VariableBase
ampersand, composeMessage, doubleAmpersand, doublePipe, getAttribute, getBooleanValue, getConfigurationNodeValue, getConfigurationValue, getIndexed, getQueryArgumentValue, getURLPathValue, hasBooleanValue, hasConfigurationNodeValue, hasConfigurationValue, hasQueryArgumentValue, hasURLPathValue, insertAt, isNull, pipe, removeAt, resolve, setReference, unaryExclamation
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hasStringValue
public boolean hasStringValue() throws ScriptException
Check if the variable has a string value- Specified by:
hasStringValue
in interfaceVariable
- Overrides:
hasStringValue
in classVariableBase
- Throws:
ScriptException
-
hasScriptValue
public boolean hasScriptValue() throws ScriptException
Check if the variable has a script value- Specified by:
hasScriptValue
in interfaceVariable
- Overrides:
hasScriptValue
in classVariableBase
- Throws:
ScriptException
-
hasIntValue
public boolean hasIntValue() throws ScriptException
Check if the variable has an int value- Specified by:
hasIntValue
in interfaceVariable
- Overrides:
hasIntValue
in classVariableBase
- Throws:
ScriptException
-
hasDoubleValue
public boolean hasDoubleValue() throws ScriptException
Check if the variable has a double value- Specified by:
hasDoubleValue
in interfaceVariable
- Overrides:
hasDoubleValue
in classVariableBase
- Throws:
ScriptException
-
getScriptValue
public java.lang.String getScriptValue() throws ScriptException
Get the variable's script value- Specified by:
getScriptValue
in interfaceVariable
- Overrides:
getScriptValue
in classVariableBase
- Throws:
ScriptException
-
getStringValue
public java.lang.String getStringValue() throws ScriptException
Get the variable's value as a string- Specified by:
getStringValue
in interfaceVariable
- Overrides:
getStringValue
in classVariableBase
- Throws:
ScriptException
-
getIntValue
public int getIntValue() throws ScriptException
Get the variable's value as an integer- Specified by:
getIntValue
in interfaceVariable
- Overrides:
getIntValue
in classVariableBase
- Throws:
ScriptException
-
getDoubleValue
public double getDoubleValue() throws ScriptException
Get the variable's value as a double- Specified by:
getDoubleValue
in interfaceVariable
- Overrides:
getDoubleValue
in classVariableBase
- Throws:
ScriptException
-
plus
public VariableReference plus(Variable v) throws ScriptException
- Specified by:
plus
in interfaceVariable
- Overrides:
plus
in classVariableBase
- Throws:
ScriptException
-
minus
public VariableReference minus(Variable v) throws ScriptException
- Specified by:
minus
in interfaceVariable
- Overrides:
minus
in classVariableBase
- Throws:
ScriptException
-
asterisk
public VariableReference asterisk(Variable v) throws ScriptException
- Specified by:
asterisk
in interfaceVariable
- Overrides:
asterisk
in classVariableBase
- Throws:
ScriptException
-
slash
public VariableReference slash(Variable v) throws ScriptException
- Specified by:
slash
in interfaceVariable
- Overrides:
slash
in classVariableBase
- Throws:
ScriptException
-
unaryMinus
public VariableReference unaryMinus() throws ScriptException
- Specified by:
unaryMinus
in interfaceVariable
- Overrides:
unaryMinus
in classVariableBase
- Throws:
ScriptException
-
greaterAngle
public VariableReference greaterAngle(Variable v) throws ScriptException
- Specified by:
greaterAngle
in interfaceVariable
- Overrides:
greaterAngle
in classVariableBase
- Throws:
ScriptException
-
lesserAngle
public VariableReference lesserAngle(Variable v) throws ScriptException
- Specified by:
lesserAngle
in interfaceVariable
- Overrides:
lesserAngle
in classVariableBase
- Throws:
ScriptException
-
doubleEquals
public VariableReference doubleEquals(Variable v) throws ScriptException
- Specified by:
doubleEquals
in interfaceVariable
- Overrides:
doubleEquals
in classVariableBase
- Throws:
ScriptException
-
greaterAngleEquals
public VariableReference greaterAngleEquals(Variable v) throws ScriptException
- Specified by:
greaterAngleEquals
in interfaceVariable
- Overrides:
greaterAngleEquals
in classVariableBase
- Throws:
ScriptException
-
lesserAngleEquals
public VariableReference lesserAngleEquals(Variable v) throws ScriptException
- Specified by:
lesserAngleEquals
in interfaceVariable
- Overrides:
lesserAngleEquals
in classVariableBase
- Throws:
ScriptException
-
exclamationEquals
public VariableReference exclamationEquals(Variable v) throws ScriptException
- Specified by:
exclamationEquals
in interfaceVariable
- Overrides:
exclamationEquals
in classVariableBase
- Throws:
ScriptException
-
-