org.hawk.module.script.type
Class Variable
java.lang.Object
org.hawk.module.script.type.Variable
public final class Variable
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Variable
public Variable(VarTypeEnum varTypeEnum,
java.lang.String structName,
java.lang.String variableName)
- Parameters:
varTypeEnum
- structName
- is used if VarTypeEnum is STRUCT otherwise ignored.variableName
-
Variable
public Variable(VarTypeEnum varTypeEnum,
java.lang.String structName,
java.lang.String variableName,
ArrayTypeEnum arrayType)
Variable
public Variable()
getIndex
public java.lang.Integer getIndex()
setIndex
public void setIndex(java.lang.Integer index)
getArrayType
public ArrayTypeEnum getArrayType()
setArrayType
public void setArrayType(ArrayTypeEnum arrayType)
copy
public Variable copy()
getVariableValue
public IDataType getVariableValue()
setVariableValue
public void setVariableValue(IDataType variableValue)
isRtrn
public boolean isRtrn()
setRtrn
public void setRtrn(boolean rtrn)
getStructName
public java.lang.String getStructName()
setStructName
public void setStructName(java.lang.String structName)
getVarTypeEnum
public VarTypeEnum getVarTypeEnum()
setVarTypeEnum
public void setVarTypeEnum(VarTypeEnum varTypeEnum)
getVariableName
public java.lang.String getVariableName()
setVariableName
public void setVariableName(java.lang.String variableName)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
add
public Variable add(Variable otherVariable)
throws HawkException
- Throws:
HawkException
subtract
public Variable subtract(Variable otherVariable)
throws HawkException
- Throws:
HawkException
divide
public Variable divide(Variable otherVariable)
throws HawkException
- Throws:
HawkException
modulus
public Variable modulus(Variable otherVariable)
throws HawkException
- Throws:
HawkException
multiply
public Variable multiply(Variable otherVariable)
throws HawkException
- Throws:
HawkException
greaterThan
public Variable greaterThan(Variable otherVariable)
throws HawkException
- Throws:
HawkException
lessThan
public Variable lessThan(Variable otherVariable)
throws HawkException
- Throws:
HawkException
greaterThanEqualTo
public Variable greaterThanEqualTo(Variable otherVariable)
throws HawkException
- Throws:
HawkException
lessThanEqualTo
public Variable lessThanEqualTo(Variable otherVariable)
throws HawkException
- Throws:
HawkException
equalTo
public Variable equalTo(Variable otherVariable)
throws HawkException
- Throws:
HawkException
and
public Variable and(Variable otherVariable)
throws HawkException
- Throws:
HawkException
or
public Variable or(Variable otherVariable)
throws HawkException
- Throws:
HawkException