org.hawk.module.script.type
Class Variable

java.lang.Object
  extended by org.hawk.module.script.type.Variable

public final class Variable
extends java.lang.Object


Constructor Summary
Variable()
           
Variable(VarTypeEnum varTypeEnum, java.lang.String structName, java.lang.String variableName)
           
Variable(VarTypeEnum varTypeEnum, java.lang.String structName, java.lang.String variableName, ArrayTypeEnum arrayType)
           
 
Method Summary
 Variable add(Variable otherVariable)
           
 Variable and(Variable otherVariable)
           
 Variable copy()
           
 Variable divide(Variable otherVariable)
           
 boolean equals(java.lang.Object obj)
           
 Variable equalTo(Variable otherVariable)
           
 ArrayTypeEnum getArrayType()
           
 java.lang.Integer getIndex()
           
 java.lang.String getStructName()
           
 java.lang.String getVariableName()
           
 IDataType getVariableValue()
           
 VarTypeEnum getVarTypeEnum()
           
 Variable greaterThan(Variable otherVariable)
           
 Variable greaterThanEqualTo(Variable otherVariable)
           
 int hashCode()
           
 boolean isRtrn()
           
 Variable lessThan(Variable otherVariable)
           
 Variable lessThanEqualTo(Variable otherVariable)
           
 Variable modulus(Variable otherVariable)
           
 Variable multiply(Variable otherVariable)
           
 Variable or(Variable otherVariable)
           
 void setArrayType(ArrayTypeEnum arrayType)
           
 void setIndex(java.lang.Integer index)
           
 void setRtrn(boolean rtrn)
           
 void setStructName(java.lang.String structName)
           
 void setVariableName(java.lang.String variableName)
           
 void setVariableValue(IDataType variableValue)
           
 void setVarTypeEnum(VarTypeEnum varTypeEnum)
           
 Variable subtract(Variable otherVariable)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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()
Method Detail

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