|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Operator
public abstract class Operator
Abstract class for representing an operator in the program. All operators have a name (whose interpretation depends on the subclass), as well as abstract functions for defining the semantics of the particular operator subclass.
Constructor Summary | |
---|---|
Operator()
|
Method Summary | |
---|---|
abstract int |
arity()
Returns the arity of the operator 1 for unary ops; 2 for binary ops; 3 for ternary ops; 0 for constants |
abstract int |
priority()
Returns an int theat represents the priority of the operator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Operator()
Method Detail |
---|
public abstract int arity()
public abstract int priority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |