cager.jexpr
Class Operator

java.lang.Object
  extended bycager.jexpr.Operator

public class Operator
extends java.lang.Object

A type resolver implementation for operators. For example the ">" operator always returns a boolean, while the "+" operator can return various types, depending on the types of its arguments.

Author:
Paul Cager.
See Also:
OperatorTypeInfo

Method Summary
 void dump(int level)
           
static Operator getBinary(java.lang.String name)
           
 int getId()
           
 java.lang.String getName()
           
 OperatorTypeInfo getTypeInfo(org.apache.bcel.generic.Type t1)
           
 OperatorTypeInfo getTypeInfo(org.apache.bcel.generic.Type t1, org.apache.bcel.generic.Type t2)
           
static Operator getUnary(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()

getId

public int getId()

getBinary

public static Operator getBinary(java.lang.String name)

getUnary

public static Operator getUnary(java.lang.String name)

getTypeInfo

public OperatorTypeInfo getTypeInfo(org.apache.bcel.generic.Type t1,
                                    org.apache.bcel.generic.Type t2)
                             throws ParseException
Throws:
ParseException

getTypeInfo

public OperatorTypeInfo getTypeInfo(org.apache.bcel.generic.Type t1)
                             throws ParseException
Throws:
ParseException

dump

public void dump(int level)