|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hawk.ds.Expression
public class Expression
This represents the input
Element| Constructor Summary | |
|---|---|
Expression(java.util.List<Element> elements)
CTOR considering the type as well. |
|
| Method Summary | |
|---|---|
java.util.List<Element> |
getExpression()
|
static void |
main(java.lang.String[] args)
|
void |
setExpression(java.util.List<Element> expression)
|
java.util.List<Element> |
toPostfix()
This returns the the POSTFIX form of the input expression. |
java.util.List<Element> |
toPrefix()
This converts the input expression into PREFIX format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Expression(java.util.List<Element> elements)
elements - type - | Method Detail |
|---|
public java.util.List<Element> getExpression()
public void setExpression(java.util.List<Element> expression)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.util.List<Element> toPrefix()
throws HawkException
HawkException
public java.util.List<Element> toPostfix()
throws HawkException
HawkException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||