Package hec.hecmath.computation
Class Util
java.lang.Object
hec.hecmath.computation.Util
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringbuildPatternString(Set<String> ops) static StringexpandExpression(String expr) protected static booleanisIdChar(char c) static booleanisOperator(String str) static Stringstatic Stringstatic Stringstatic intmatchBracket(String expr, int pos) static intnestedLevel(String expr, int pos) static StringnormalizeParentheses(String expr) static Stringstatic Stringstatic Stringstatic void
-
Field Details
-
matchingBracket
-
allOperators
-
nonMathPatternLevels
-
mathPatternLevels
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
isIdChar
protected static boolean isIdChar(char c) -
buildPatternString
-
isOperator
-
reSub
-
reSub
-
trim
-
join
-
join
-
join
-
validateBalancedBrackets
- Throws:
ComputationException
-
normalizeParentheses
-
nestedLevel
- Throws:
ComputationException
-
matchBracket
- Throws:
ComputationException
-
expandExpression
- Throws:
ComputationException
-