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
,LogAnalyzer
,SinAnalyzer
,TanAnalyzer
,UnaryFunctionAnalyzerYCrCb
,WrapAnalyzer
public abstract class UnaryFunctionAnalyzer extends Object implements SemanticAnalyzerInterface
Abstract class that parses a function that takes one expression as a parameter.
-
-
Constructor Summary
Constructors Constructor Description UnaryFunctionAnalyzer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ExpressionTreeNode
generateExpressionTree(Stack<Token> tokens)
abstract ExpressionTreeNode
unaryFunction(ExpressionTreeNode parameter)
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
- Specified by:
generateExpressionTree
in interfaceSemanticAnalyzerInterface
- Parameters:
tokens
- in postfix order- Returns:
- the root node for the expression represented by the top token
-
unaryFunction
public abstract ExpressionTreeNode unaryFunction(ExpressionTreeNode parameter)
-
-