org.apgrid.grpc.ng
Class NgExpression

java.lang.Object
  extended byorg.apgrid.grpc.ng.NgExpression

public class NgExpression
extends java.lang.Object


Field Summary
static java.lang.String elemName
           
static java.lang.String NGEXP_STR_BIARITH
           
static java.lang.String NGEXP_STR_IMMEDIATE
           
static java.lang.String NGEXP_STR_MONOARITH
           
static java.lang.String NGEXP_STR_NOVAL
           
static java.lang.String NGEXP_STR_SCALARREF
           
static java.lang.String NGEXP_STR_TRIARITH
           
static int OP_END
           
static int OP_VALUE_DIV
           
static int OP_VALUE_EQ
           
static int OP_VALUE_GE
           
static int OP_VALUE_GT
           
static int OP_VALUE_LE
           
static int OP_VALUE_LT
           
static int OP_VALUE_MINUS
           
static int OP_VALUE_MOD
           
static int OP_VALUE_MUL
           
static int OP_VALUE_NEQ
           
static int OP_VALUE_PLUS
           
static int OP_VALUE_POW
           
static int OP_VALUE_TRY
           
static int OP_VALUE_UN_MINUS
           
static int VALUE_CONST
          default, give by constant
static int VALUE_END_OF_OP
          end of expression
static int VALUE_ERROR
           
static int VALUE_IN_ARG
          specified by IN scalar parameter
static int VALUE_NONE
          default
static int VALUE_OP
          operation code
 
Constructor Summary
NgExpression()
           
NgExpression(org.w3c.dom.Node node)
           
 
Method Summary
 long calc(int[] arg)
           
 java.lang.String toText()
           
 java.lang.String toXMLString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elemName

public static final java.lang.String elemName
See Also:
Constant Field Values

OP_VALUE_PLUS

public static final int OP_VALUE_PLUS
See Also:
Constant Field Values

OP_VALUE_MINUS

public static final int OP_VALUE_MINUS
See Also:
Constant Field Values

OP_VALUE_MUL

public static final int OP_VALUE_MUL
See Also:
Constant Field Values

OP_VALUE_DIV

public static final int OP_VALUE_DIV
See Also:
Constant Field Values

OP_VALUE_MOD

public static final int OP_VALUE_MOD
See Also:
Constant Field Values

OP_VALUE_UN_MINUS

public static final int OP_VALUE_UN_MINUS
See Also:
Constant Field Values

OP_VALUE_POW

public static final int OP_VALUE_POW
See Also:
Constant Field Values

OP_VALUE_EQ

public static final int OP_VALUE_EQ
See Also:
Constant Field Values

OP_VALUE_NEQ

public static final int OP_VALUE_NEQ
See Also:
Constant Field Values

OP_VALUE_GT

public static final int OP_VALUE_GT
See Also:
Constant Field Values

OP_VALUE_LT

public static final int OP_VALUE_LT
See Also:
Constant Field Values

OP_VALUE_GE

public static final int OP_VALUE_GE
See Also:
Constant Field Values

OP_VALUE_LE

public static final int OP_VALUE_LE
See Also:
Constant Field Values

OP_VALUE_TRY

public static final int OP_VALUE_TRY
See Also:
Constant Field Values

OP_END

public static final int OP_END
See Also:
Constant Field Values

VALUE_ERROR

public static final int VALUE_ERROR
See Also:
Constant Field Values

VALUE_NONE

public static final int VALUE_NONE
default

See Also:
Constant Field Values

VALUE_CONST

public static final int VALUE_CONST
default, give by constant

See Also:
Constant Field Values

VALUE_IN_ARG

public static final int VALUE_IN_ARG
specified by IN scalar parameter

See Also:
Constant Field Values

VALUE_OP

public static final int VALUE_OP
operation code

See Also:
Constant Field Values

VALUE_END_OF_OP

public static final int VALUE_END_OF_OP
end of expression

See Also:
Constant Field Values

NGEXP_STR_NOVAL

public static final java.lang.String NGEXP_STR_NOVAL
See Also:
Constant Field Values

NGEXP_STR_IMMEDIATE

public static final java.lang.String NGEXP_STR_IMMEDIATE
See Also:
Constant Field Values

NGEXP_STR_SCALARREF

public static final java.lang.String NGEXP_STR_SCALARREF
See Also:
Constant Field Values

NGEXP_STR_MONOARITH

public static final java.lang.String NGEXP_STR_MONOARITH
See Also:
Constant Field Values

NGEXP_STR_BIARITH

public static final java.lang.String NGEXP_STR_BIARITH
See Also:
Constant Field Values

NGEXP_STR_TRIARITH

public static final java.lang.String NGEXP_STR_TRIARITH
See Also:
Constant Field Values
Constructor Detail

NgExpression

public NgExpression()

NgExpression

public NgExpression(org.w3c.dom.Node node)
             throws GrpcException
Parameters:
node -
Method Detail

toText

public java.lang.String toText()
Returns:

calc

public long calc(int[] arg)
          throws NgArgTypeException
Parameters:
arg -
Returns:
Throws:
NgArgTypeException

toXMLString

public java.lang.String toXMLString()
Returns: