|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IScriptpublic void setLineNumber(int lineNumber)
public abstract Variable execute()
throws HawkException
IScript
execute in interface IScriptHawkExceptionpublic void pushLocalVars()
IScript.pushLocalVars()
pushLocalVars in interface IScriptpublic java.util.Map<java.lang.String,IDataType> popLocalVars()
IScript.popLocalVars()
popLocalVars in interface IScriptpublic abstract boolean isVariable()
isVariable in interface IScriptpublic java.lang.String mangle()
mangle in interface IScriptprotected 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 IScriptHawkException
public IScript and(IScript dataType)
throws HawkException
and in interface IScriptHawkException
public IScript divide(IScript dataType)
throws HawkException
divide in interface IScriptHawkException
public IScript greaterThan(IScript dataType)
throws HawkException
greaterThan in interface IScriptHawkException
public IScript greaterThanEqualTo(IScript dataType)
throws HawkException
greaterThanEqualTo in interface IScriptHawkException
public IScript lessThan(IScript dataType)
throws HawkException
lessThan in interface IScriptHawkException
public IScript lessThanEqualTo(IScript dataType)
throws HawkException
lessThanEqualTo in interface IScriptHawkException
public IScript modulus(IScript dataType)
throws HawkException
modulus in interface IScriptHawkException
public IScript multiply(IScript dataType)
throws HawkException
multiply in interface IScriptHawkException
public IScript or(IScript dataType)
throws HawkException
or in interface IScriptHawkException
public IScript equalTo(IScript dataType)
throws HawkException
equalTo in interface IScriptHawkException
public IScript subtract(IScript dataType)
throws HawkException
subtract in interface IScriptHawkException
public IScript refer(IScript dataType)
throws HawkException
refer in interface IScriptHawkException
public IScript assign(IScript dataType)
throws HawkException
assign in interface IScriptHawkException
public IScript arrayBracket(IScript otherScript)
throws HawkException
arrayBracket in interface IScriptHawkExceptionpublic 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 IScriptHawkException
public java.lang.Object toJava()
throws HawkException
IScript
toJava in interface IScriptHawkException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||