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"); } }
public static FunctionArg ForContext(PathEvaluatingTraversal traversal) { return(new ContextLookupArg(traversal)); }
public static FunctionArg ForSelf(PathEvaluatingTraversal traversal) { return(new SelfLookupArg(traversal)); }
public ContextLookupArg(PathEvaluatingTraversal traversal) { _traversal = traversal; }