public final GetAttr getAttr(String path) {
        return GetAttr.ofExpressions(toExpression(), path);
    }
Returns a GetAttr function containing the given path string.

@param path the path.
@return the {@link GetAttr} function.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/SyntaxElement.java