Package picasso.parser
Class UnaryFunctionAnalyzer
- java.lang.Object
-
- picasso.parser.UnaryFunctionAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
- Direct Known Subclasses:
AbsAnalyzer,AtanAnalyzer,CeilAnalyzer,ClampAnalyzer,CosAnalyzer,ExpAnalyzer,FloorAnalyzer,InvertAnalyzer,LogAnalyzer,RgbToYCrCbAnalyzer,SinAnalyzer,TanAnalyzer,WrapAnalyzer,YCrCbToRGBAnalyzer
public abstract class UnaryFunctionAnalyzer extends Object implements SemanticAnalyzerInterface
Abstract class that parses a function that takes one expression as a parameter (works also for inverting (unary operator)).
-
-
Constructor Summary
Constructors Constructor Description UnaryFunctionAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTreeNodegenerateExpressionTree(Stack<Token> tokens)
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
- Specified by:
generateExpressionTreein interfaceSemanticAnalyzerInterface- Parameters:
tokens- in postfix order- Returns:
- the root node for the expression represented by the top token
-
-