Module org.junit.platform.launcher
Class ShuntingYard
java.lang.Object
org.junit.platform.launcher.tagexpression.ShuntingYard
This is based on a modified version of the
Shunting-yard algorithm.
- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ParseStatusprivate TagExpressionconvertLeafTokenToExpression(String trimmed) private ParseStatusexecute()private ParseStatusfindMatchingLeftParenthesis(Token token) private ParseStatusfindOperands(Token token, Operator currentOperator) private Operatorprivate ParseStatusprivate ParseStatusprivate voidpushExpressionAt(Token token, TagExpression tagExpression) private voidpushOperatorAt(Token token, Operator operator)
-
Field Details
-
RightParenthesis
-
LeftParenthesis
-
Sentinel
-
SentinelToken
-
validOperators
-
expressions
-
operators
-
tokens
-
-
Constructor Details
-
ShuntingYard
-
-
Method Details
-
execute
-
processTokens
-
process
-
convertLeafTokenToExpression
-
findMatchingLeftParenthesis
-
findOperands
-
previousOperator
-
pushExpressionAt
-
pushOperatorAt
-
consumeRemainingOperators
-
ensureOnlySingleExpressionRemains
-