info.bliki.wiki.template.expr.operator
Class InfixOperator

java.lang.Object
  extended by info.bliki.wiki.template.expr.operator.Operator
      extended by info.bliki.wiki.template.expr.operator.InfixOperator
Direct Known Subclasses:
DivideOperator, SubtractOperator

public class InfixOperator
extends Operator


Field Summary
static int LEFT_ASSOCIATIVE
           
static int NONE
           
static int RIGHT_ASSOCIATIVE
           
 
Fields inherited from class info.bliki.wiki.template.expr.operator.Operator
fFunctionName, fOperatorString, fPrecedence
 
Constructor Summary
InfixOperator(java.lang.String oper, java.lang.String functionName, int precedence, int grouping)
           
 
Method Summary
 ASTNode createFunction(IParserFactory factory, ASTNode lhs, ASTNode rhs)
           
 int getGrouping()
          Return the grouping of the Infix-Operator (i.e.
 
Methods inherited from class info.bliki.wiki.template.expr.operator.Operator
equals, getFunctionName, getOperatorString, getPrecedence, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

RIGHT_ASSOCIATIVE

public static final int RIGHT_ASSOCIATIVE
See Also:
Constant Field Values

LEFT_ASSOCIATIVE

public static final int LEFT_ASSOCIATIVE
See Also:
Constant Field Values
Constructor Detail

InfixOperator

public InfixOperator(java.lang.String oper,
                     java.lang.String functionName,
                     int precedence,
                     int grouping)
Method Detail

getGrouping

public int getGrouping()
Return the grouping of the Infix-Operator (i.e. NONE,LEFT_ASSOCIATIVE, RIGHT_ASSOCIATIVE)

Returns:

createFunction

public ASTNode createFunction(IParserFactory factory,
                              ASTNode lhs,
                              ASTNode rhs)


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.