|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperators
public class Operators
Constructor Summary | |
---|---|
Operators()
|
Method Summary | |
---|---|
int |
getPrecedence(java.lang.String op)
Given a string, returns precedence of corresponding operator |
boolean |
isOperator(java.lang.String op)
Given a string, returns true if that string is a defined operator ("+", "-", etc) and false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Operators()
Method Detail |
---|
public boolean isOperator(java.lang.String op)
op
- String representing an operator
public int getPrecedence(java.lang.String op)
op
- String representing an operator
java.lang.IllegalArgumentException
- if the argument is not a valid operator
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |