cager.jexpr
Class Operator
java.lang.Object
cager.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)