|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hawk.module.script.AbstractScript
org.hawk.module.script.SingleLineScript
org.hawk.module.script.BreakScript
public class BreakScript
This breaks out a for loop in hawk script.
e.g.
for(var i = 1 ; i <= 100 ; i = i +1)
{
if ( i == 50 )
{
echo "Stop here"
break
}
}
IfScript
Field Summary |
---|
Fields inherited from class org.hawk.module.script.AbstractScript |
---|
outerMultiLineScript |
Constructor Summary | |
---|---|
BreakScript()
Default CTOR |
Method Summary | |
---|---|
static BreakScript |
createScript(java.util.Map<java.lang.Integer,java.lang.String> lineBreakMatcherMap)
This creates the BreakScript from the break matcher map. |
Variable |
execute()
There is nothing to be done except returning true as break does not have anything to execute. |
static java.util.regex.Pattern |
getPattern()
Returns the break script pattern |
boolean |
isVariable()
|
Methods inherited from class org.hawk.module.script.SingleLineScript |
---|
addScripts, copy, findNearestOuterMLScript, getVariable, getVariableValue, setVariable, setVariableValue, toUI |
Methods inherited from class org.hawk.module.script.AbstractScript |
---|
add, and, arrayBracket, assign, divide, equalTo, evaluateGlobalVariable, evaluateLocalBoolean, evaluateLocalVariable, getLineNumber, getOuterMultiLineScript, greaterThan, greaterThanEqualTo, isLastScript, lessThan, lessThanEqualTo, mangle, modulus, multiply, or, popLocalVars, pushLocalVars, refer, setLastScript, setLineNumber, setOuterMultiLineScript, subtract, toJava, toJavaMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BreakScript()
Method Detail |
---|
public static java.util.regex.Pattern getPattern()
ScriptPattern
public Variable execute() throws HawkException
execute
in interface IScript
execute
in class SingleLineScript
HawkException
public static BreakScript createScript(java.util.Map<java.lang.Integer,java.lang.String> lineBreakMatcherMap)
lineBreakMatcherMap
-
CreateScript
public boolean isVariable()
isVariable
in interface IScript
isVariable
in class SingleLineScript
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |