示例#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");
            }
        }
示例#2
0
 public static FunctionArg ForContext(PathEvaluatingTraversal traversal)
 {
     return(new ContextLookupArg(traversal));
 }
示例#3
0
 public static FunctionArg ForSelf(PathEvaluatingTraversal traversal)
 {
     return(new SelfLookupArg(traversal));
 }
示例#4
0
 public ContextLookupArg(PathEvaluatingTraversal traversal)
 {
     _traversal = traversal;
 }