Class AggregateTypeUtil

java.lang.Object
org.yamcs.xtce.util.AggregateTypeUtil

public class AggregateTypeUtil extends Object
operations to aggregates or arrays
  • Constructor Details

    • AggregateTypeUtil

      public AggregateTypeUtil()
  • Method Details

    • findSeparator

      public static int findSeparator(String s)
      finds the first occurrence of . or [ after the last /
      Parameters:
      s -
      Returns:
      the position of the first occurrence of . or [ after the last slash; returns -1 if not found
    • parseReference

      public static PathElement[] parseReference(String name)
      parses a reference of shape
       x.y[3][4].z
       
      into an array of PathElement
      Parameters:
      name -
      Returns:
    • verifyPath

      public static boolean verifyPath(ParameterType parameterType, PathElement[] path)
      Verify that the path exists in the parameter type
      Parameters:
      parameterType -
      path -
      Returns:
    • getMemberType

      public static ParameterType getMemberType(ParameterType parameterType, PathElement[] path)
    • toString

      public static String toString(PathElement[] path)