org.hawk.module.script
Class ReadLineScript

java.lang.Object
  extended by org.hawk.module.script.AbstractScript
      extended by org.hawk.module.script.SingleLineScript
          extended by org.hawk.module.script.ReadLineScript
All Implemented Interfaces:
IScript

public class ReadLineScript
extends SingleLineScript


Field Summary
 
Fields inherited from class org.hawk.module.script.AbstractScript
outerMultiLineScript
 
Constructor Summary
ReadLineScript()
          Default CTOR
 
Method Summary
static ReadLineScript createScript(java.util.Map<java.lang.Integer,java.lang.String> lineReadLineMatcherMap)
          This returns ReadLineScript from echo matcher map.
 Variable execute()
          This executes the contents of a script.
 java.lang.String getBuffer()
           
 java.lang.String getInputStream()
           
static java.util.regex.Pattern getPattern()
          Echo script pattern.
 boolean isVariable()
           
 void setBuffer(java.lang.String buffer)
           
 void setInputStream(java.lang.String inputStream)
           
 
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

ReadLineScript

public ReadLineScript()
Default CTOR

Method Detail

getBuffer

public java.lang.String getBuffer()

setBuffer

public void setBuffer(java.lang.String buffer)

getInputStream

public java.lang.String getInputStream()

setInputStream

public void setInputStream(java.lang.String inputStream)

getPattern

public static java.util.regex.Pattern getPattern()
Echo script pattern.

Returns:
returns echo script pattern
See Also:
ScriptPattern

execute

public Variable execute()
                 throws HawkException
Description copied from interface: IScript
This executes the contents of a script. This returns either a boolean or double depending upon how a method is invoked.

Specified by:
execute in interface IScript
Overrides:
execute in class SingleLineScript
Returns:
the returned data is being used to test whether a function returns or not. Currently Hawk support two types return Double and Boolean.The implementation should look at the return type and script type to determine what action to be taken.
Throws:
HawkException

createScript

public static ReadLineScript createScript(java.util.Map<java.lang.Integer,java.lang.String> lineReadLineMatcherMap)
This returns ReadLineScript from echo matcher map.

Parameters:
lineEchoMatcherMap -
Returns:

isVariable

public boolean isVariable()
Specified by:
isVariable in interface IScript
Overrides:
isVariable in class SingleLineScript
Returns: