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

Inherits org.qscript.operator.Operator.

Public Member Functions

 ConjugateFunction (String symbol, int nbrArgs, int priority, int type)
 
Argument resolve (Script script, Token token, Argument[] args, Object...objects) throws EvaluationException
 
- Public Member Functions inherited from org.qscript.operator.Operator
 Operator (String symbol, int nbrArgs, int priority, int type)
 
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 ()
 

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

calculates the conjugate of a complex number

Author
Peter Lager

Member Function Documentation

Argument org.qscript.operator.ConjugateFunction.resolve ( Script  script,
Token  token,
Argument[]  args,
Object...  objects 
) throws EvaluationException
virtual
Parameters
scriptthe Script object responsible for evaluation
tokenthe current token being evaluated
argsthe arguments for this operator
objectsignore it has been included for possible future use
Returns
the result of this operation or null if there is no need to store the result
Exceptions
SyntaxException
EvaluationException

Implements org.qscript.operator.Operator.


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