Class Expression.Op<E>
- java.lang.Object
-
- edu.washington.cs.knowitall.logic.Expression<E>
-
- edu.washington.cs.knowitall.logic.Expression.Apply<E>
-
- edu.washington.cs.knowitall.logic.Expression.Op<E>
-
- Direct Known Subclasses:
Expression.Op.Bin
,Expression.Op.Mon
- Enclosing class:
- Expression<E>
public abstract static class Expression.Op<E> extends Expression.Apply<E>
An operator expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Expression.Op.Bin<E>
An operator that takes two arguments, such as disjunction.static class
Expression.Op.Mon<E>
An operator that takes a single argument, such as negation.-
Nested classes/interfaces inherited from class edu.washington.cs.knowitall.logic.Expression
Expression.Apply<E>, Expression.Arg<E>, Expression.Op<E>, Expression.Paren<E>
-
-
Constructor Summary
Constructors Constructor Description Op()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
precedence()
The precedence of this operator.boolean
preceeds(Expression.Op<?> that)
-
Methods inherited from class edu.washington.cs.knowitall.logic.Expression.Apply
apply
-
-
-
-
Method Detail
-
preceeds
public boolean preceeds(Expression.Op<?> that)
-
precedence
public abstract int precedence()
The precedence of this operator. A smaller number denotes higher precedence.
-
-