Exemple #1
0
        public SelfLookupArg(PathEvaluatingTraversal traversal)
        {
            IPathElement pathElement = traversal.Get(traversal.Size() - 1);

            if (pathElement is TransposePathElement tpe)
            {
                _pathElement = tpe;
            }
            else
            {
                throw new SpecException("Expected @ path element here");
            }
        }
Exemple #2
0
 public static FunctionArg ForContext(PathEvaluatingTraversal traversal)
 {
     return(new ContextLookupArg(traversal));
 }
Exemple #3
0
 public static FunctionArg ForSelf(PathEvaluatingTraversal traversal)
 {
     return(new SelfLookupArg(traversal));
 }
Exemple #4
0
 public ContextLookupArg(PathEvaluatingTraversal traversal)
 {
     _traversal = traversal;
 }