Package org.yamcs.xtce.util
Class AggregateTypeUtil
java.lang.Object
org.yamcs.xtce.util.AggregateTypeUtil
operations to aggregates or arrays
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
finds the first occurrence of . or [ after the last /static ParameterType
getMemberType
(ParameterType parameterType, PathElement[] path) static PathElement[]
parseReference
(String name) parses a reference of shapestatic String
toString
(PathElement[] path) static boolean
verifyPath
(ParameterType parameterType, PathElement[] path) Verify that the path exists in the parameter type
-
Constructor Details
-
AggregateTypeUtil
public AggregateTypeUtil()
-
-
Method Details
-
findSeparator
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
parses a reference of shapex.y[3][4].z
into an array of PathElement- Parameters:
name
-- Returns:
-
verifyPath
Verify that the path exists in the parameter type- Parameters:
parameterType
-path
-- Returns:
-
getMemberType
-
toString
-