Documentation of 'cc.redberry.core.parser.ParserIndices' Java class
ParserIndices
cc.redberry.core.parser

Class ParserIndices



  • public final class ParserIndices
    extends java.lang.Object
    Parser for indices of tensors.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.util.regex.Pattern pattern
      A 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 SimpleIndices parseSimple(java.lang.String expression)
      Parses string expression an returns indices.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        public static final java.util.regex.Pattern pattern
        A bit of regex
    • Constructor Detail

      • ParserIndices

        public ParserIndices()
    • 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

Ads help maintain this website.