QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
org.qscript.operator.FlowOperator Class Reference

Inherits org.qscript.operator.Operator.

Inherited by org.qscript.operator.ELSE_operator, org.qscript.operator.END_operator, org.qscript.operator.ENDIF_operator, org.qscript.operator.IF_operator, org.qscript.operator.REPEAT_operator, org.qscript.operator.UNTIL_operator, org.qscript.operator.WEND_operator, and org.qscript.operator.WHILE_operator.

Public Member Functions

 FlowOperator (FlowOperatorType fop_type, String symbol, int nbrArgs, int priority, int type)
 
boolean isMatchingStartFor (FlowOperator possibleEnd)
 
boolean isMatchingEndFor (FlowOperator possibleStart)
 
FlowOperatorType getFopType ()
 
boolean isFlowOperator ()
 
String toString ()
 
- Public Member Functions inherited from org.qscript.operator.Operator
 Operator (String symbol, int nbrArgs, int priority, int type)
 
abstract Argument resolve (Script script, Token token, Argument[] args, Object...objects) throws EvaluationException
 
String getSymbol ()
 
int getNbrArgs ()
 
int getPriority ()
 
int getOpType ()
 
boolean isOperator ()
 
String forListing ()
 
String toString ()
 
- Public Member Functions inherited from org.qscript.Token
void setTextPosition (int charStart, int charWidth)
 
void setTextPosition (int line, int charStart, int charWidth)
 
int getLine ()
 
int getCharStart ()
 
int getCharWidth ()
 
boolean isArgument ()
 
boolean isFlowAction ()
 
boolean isVariable ()
 
boolean isThing ()
 
boolean isOperator ()
 
boolean isFlowOperator ()
 
String forListing ()
 

Public Attributes

final FlowOperatorType fop_type
 

Additional Inherited Members

- Static Public Attributes inherited from org.qscript.operator.Operator
static final int MARKER = 0
 
static final int CONSTANT = 1
 
static final int INFIX_SYMBOL = 2
 
static final int FUNCTION = 3
 
- Static Public Attributes inherited from org.qscript.Token
static final Token DUMMY = new Argument(null)
 
- Protected Member Functions inherited from org.qscript.operator.Operator
boolean testForUninitialisedVars (Script script, Argument[] args) throws EvaluationException
 
boolean testForUninitialisedVar (Script script, Argument arg) throws EvaluationException
 
void handleInvalidArguments (Script script, Token token) throws EvaluationException
 
- Protected Member Functions inherited from org.qscript.Token
 Token ()
 
- Protected Attributes inherited from org.qscript.Token
int line
 
int charStart
 
int charWidth
 

Detailed Description

A flow operator is one which controls the flow of operations found in conditional and loop constructs.

Author
Peter Lager

Member Function Documentation

FlowOperatorType org.qscript.operator.FlowOperator.getFopType ( )
Returns
the type
boolean org.qscript.operator.FlowOperator.isFlowOperator ( )

Returns true

boolean org.qscript.operator.FlowOperator.isMatchingEndFor ( FlowOperator  possibleStart)

Determines whether the supplied flow construct is a valid start construct for this one.

Parameters
possibleStartflow construct to test
Returns
true if valid
boolean org.qscript.operator.FlowOperator.isMatchingStartFor ( FlowOperator  possibleEnd)

Determines whether the supplied flow construct is a valid end construct for this one.

Parameters
possibleEndflow construct to test
Returns
true if valid

The documentation for this class was generated from the following file: