Class BasePathAndGroupReference

  • All Implemented Interfaces:
    PathAndGroupReference, PathReference
    Direct Known Subclasses:
    AmpReference, DollarReference

    public abstract class BasePathAndGroupReference
    extends java.lang.Object
    implements PathAndGroupReference
    All "References" extend this class and support three level of syntactic sugar Example with the AmpReference 1 "&" 2 "&0" 3 "&(0,0)" all three mean the same thing. References are used to look up values in a WalkedPath. In the CanonicalForm the first entry is how far up the WalkedPath to look for a LiteralPathElement, and the second entry is which part of that LiteralPathElement to ask for.
    • Field Detail

      • keyGroup

        private final int keyGroup
      • pathIndex

        private final int pathIndex
    • Constructor Detail

      • BasePathAndGroupReference

        public BasePathAndGroupReference​(java.lang.String refStr)
    • Method Detail

      • getToken

        protected abstract char getToken()
      • getCanonicalForm

        public java.lang.String getCanonicalForm()
        Builds the non-syntactic sugar / maximally expanded and unique form of this reference.
        Specified by:
        getCanonicalForm in interface PathReference
        Returns:
        canonical form : aka "&" -> "&(0,0)