public class MetricParser extends Object
| Constructor and Description |
|---|
MetricParser() |
| Modifier and Type | Method and Description |
|---|---|
static Output |
parse(String s,
String sourceVar,
Config c)
Parses String to Metric
|
protected static Node |
parsePart(Node parent,
String s,
String sourceVar,
int pos,
Config c)
Parses Node from String
|
protected static String |
setParametersFromString(Node node,
String s,
int pos)
Sets the parameters of a Node from StringExpression
|
protected static String[] |
splitFunc(String s)
Splits the String
|
protected static String[] splitFunc(String s)
s - String to Splitprotected static String setParametersFromString(Node node, String s, int pos)
node - Node to be configurateds - Expressionpos - Position of Nodeprotected static Node parsePart(Node parent, String s, String sourceVar, int pos, Config c) throws MetricFormatException
parent - Already parsed Parents - String to parsesourceVar - Labelpos - Position of NodeMetricFormatExceptionpublic static Output parse(String s, String sourceVar, Config c) throws MetricFormatException
s - String to parsesourceVar - LabelMetricFormatException - thrown if there is something wrongCopyright © 2019. All rights reserved.