picasso.parser
Class UnaryFunctionAnalyzer

java.lang.Object
  extended by picasso.parser.UnaryFunctionAnalyzer
All Implemented Interfaces:
SemanticAnalyzerInterface
Direct Known Subclasses:
AbsAnalyzer, AtanAnalyzer, CeilAnalyzer, ClampAnalyzer, CosAnalyzer, ExpAnalyzer, FloorAnalyzer, LogAnalyzer, NegateAnalyzer, RandomColorAnalyzer, RgbToYCrCbAnalyzer, SinAnalyzer, WrapAnalyzer, YCRC2RGBRAnalyzer

public abstract class UnaryFunctionAnalyzer
extends java.lang.Object
implements SemanticAnalyzerInterface

Parses a function that takes one expression as a parameter. XXX: Not sure if this class is necessary.

Author:
Sara Sprenkle

Constructor Summary
UnaryFunctionAnalyzer()
           
 
Method Summary
abstract  ExpressionTreeNode generateExpressionTree(java.util.Stack<Token> tokens)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnaryFunctionAnalyzer

public UnaryFunctionAnalyzer()
Method Detail

generateExpressionTree

public abstract ExpressionTreeNode generateExpressionTree(java.util.Stack<Token> tokens)
Specified by:
generateExpressionTree in interface SemanticAnalyzerInterface
Parameters:
tokens - , in postfix order
Returns:
the root node for the expression represented by the top token