|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hawk.module.script.AbstractScript
public abstract class AbstractScript
Abstract class for IScript.
This provides default implementation
for IScript.pushLocalVars()
and IScript.popLocalVars()
Field Summary | |
---|---|
protected MultiLineScript |
outerMultiLineScript
|
Constructor Summary | |
---|---|
AbstractScript()
|
Method Summary | |
---|---|
IScript |
add(IScript dataType)
|
IScript |
and(IScript dataType)
|
IScript |
arrayBracket(IScript otherScript)
|
IScript |
assign(IScript dataType)
|
IScript |
divide(IScript dataType)
|
IScript |
equalTo(IScript dataType)
|
IScript |
evaluateGlobalVariable(java.lang.String expression)
|
boolean |
evaluateLocalBoolean(java.lang.String expression)
|
IScript |
evaluateLocalVariable(java.lang.String expression)
|
abstract Variable |
execute()
This executes the contents of a script. |
protected abstract MultiLineScript |
findNearestOuterMLScript()
|
int |
getLineNumber()
|
MultiLineScript |
getOuterMultiLineScript()
|
IScript |
greaterThan(IScript dataType)
|
IScript |
greaterThanEqualTo(IScript dataType)
|
boolean |
isLastScript()
|
abstract boolean |
isVariable()
|
IScript |
lessThan(IScript dataType)
|
IScript |
lessThanEqualTo(IScript dataType)
|
java.lang.String |
mangle()
|
IScript |
modulus(IScript dataType)
|
IScript |
multiply(IScript dataType)
|
IScript |
or(IScript dataType)
|
java.util.Map<java.lang.String,IDataType> |
popLocalVars()
Default implementation for IScript.popLocalVars() |
void |
pushLocalVars()
Default implementation for IScript.pushLocalVars() |
IScript |
refer(IScript dataType)
|
void |
setLastScript(boolean lastScript)
|
void |
setLineNumber(int lineNumber)
|
void |
setOuterMultiLineScript(MultiLineScript outerMultiLineScript)
|
IScript |
subtract(IScript dataType)
|
java.lang.Object |
toJava()
This converts the hawk object into java object |
java.util.Map<java.lang.Object,java.lang.Object> |
toJavaMap()
This converts the hawk object into java map.. |
abstract java.lang.String |
toUI()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hawk.module.script.IScript |
---|
copy, getVariable, getVariableValue, setVariable, setVariableValue |
Field Detail |
---|
protected MultiLineScript outerMultiLineScript
Constructor Detail |
---|
public AbstractScript()
Method Detail |
---|
public boolean isLastScript()
public void setLastScript(boolean lastScript)
public MultiLineScript getOuterMultiLineScript()
public void setOuterMultiLineScript(MultiLineScript outerMultiLineScript)
public int getLineNumber()
getLineNumber
in interface IScript
public void setLineNumber(int lineNumber)
public abstract Variable execute() throws HawkException
IScript
execute
in interface IScript
HawkException
public void pushLocalVars()
IScript.pushLocalVars()
pushLocalVars
in interface IScript
public java.util.Map<java.lang.String,IDataType> popLocalVars()
IScript.popLocalVars()
popLocalVars
in interface IScript
public abstract boolean isVariable()
isVariable
in interface IScript
public java.lang.String mangle()
mangle
in interface IScript
protected abstract MultiLineScript findNearestOuterMLScript()
public boolean evaluateLocalBoolean(java.lang.String expression) throws HawkException
HawkException
public IScript evaluateGlobalVariable(java.lang.String expression) throws HawkException
HawkException
public IScript evaluateLocalVariable(java.lang.String expression) throws HawkException
HawkException
public IScript add(IScript dataType) throws HawkException
add
in interface IScript
HawkException
public IScript and(IScript dataType) throws HawkException
and
in interface IScript
HawkException
public IScript divide(IScript dataType) throws HawkException
divide
in interface IScript
HawkException
public IScript greaterThan(IScript dataType) throws HawkException
greaterThan
in interface IScript
HawkException
public IScript greaterThanEqualTo(IScript dataType) throws HawkException
greaterThanEqualTo
in interface IScript
HawkException
public IScript lessThan(IScript dataType) throws HawkException
lessThan
in interface IScript
HawkException
public IScript lessThanEqualTo(IScript dataType) throws HawkException
lessThanEqualTo
in interface IScript
HawkException
public IScript modulus(IScript dataType) throws HawkException
modulus
in interface IScript
HawkException
public IScript multiply(IScript dataType) throws HawkException
multiply
in interface IScript
HawkException
public IScript or(IScript dataType) throws HawkException
or
in interface IScript
HawkException
public IScript equalTo(IScript dataType) throws HawkException
equalTo
in interface IScript
HawkException
public IScript subtract(IScript dataType) throws HawkException
subtract
in interface IScript
HawkException
public IScript refer(IScript dataType) throws HawkException
refer
in interface IScript
HawkException
public IScript assign(IScript dataType) throws HawkException
assign
in interface IScript
HawkException
public IScript arrayBracket(IScript otherScript) throws HawkException
arrayBracket
in interface IScript
HawkException
public abstract java.lang.String toUI()
toUI
in interface IScript
public java.util.Map<java.lang.Object,java.lang.Object> toJavaMap() throws HawkException
IScript
toJavaMap
in interface IScript
HawkException
public java.lang.Object toJava() throws HawkException
IScript
toJava
in interface IScript
HawkException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |