cc.redberry.core.parser
Class ParserIndices
- java.lang.Object
-
- cc.redberry.core.parser.ParserIndices
-
public final class ParserIndices extends java.lang.ObjectParser for indices of tensors.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.util.regex.PatternpatternA bit of regex
-
Constructor Summary
Constructors Constructor and Description ParserIndices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static int[]parse(java.lang.String expression)Parses string expression an return integer array of indices.static SimpleIndicesparseSimple(java.lang.String expression)Parses string expression an returns indices.
-
-
-
Method Detail
-
parseSimple
public static SimpleIndices parseSimple(java.lang.String expression)
Parses string expression an returns indices.- Parameters:
expression- string representation of indices- Returns:
- integer indices
- Throws:
java.lang.IllegalArgumentException- if string does not represent correct indices object.
-
parse
public static int[] parse(java.lang.String expression)
Parses string expression an return integer array of indices.- Parameters:
expression- string representation of indices- Returns:
- integer array of indices
- Throws:
java.lang.IllegalArgumentException- if string does not represent correct indices object.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG