Module org.elasticsearch.xcore
Class ExpressionParser
java.lang.Object
org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.ExpressionParser
Parses the JSON (XContent) based boolean expression DSL into a tree of
RoleMapperExpression objects.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(String name, XContentSource content) static RoleMapperExpressionparseObject(org.elasticsearch.xcontent.XContentParser parser, String id) This function exists to be compatible withContextParser.parse(XContentParser, Object)static RoleMapperExpressionstatic voidwriteExpression(RoleMapperExpression expression, StreamOutput out)
-
Constructor Details
-
ExpressionParser
public ExpressionParser()
-
-
Method Details
-
readExpression
- Throws:
IOException
-
writeExpression
public static void writeExpression(RoleMapperExpression expression, StreamOutput out) throws IOException - Throws:
IOException
-
parseObject
public static RoleMapperExpression parseObject(org.elasticsearch.xcontent.XContentParser parser, String id) throws IOException This function exists to be compatible withContextParser.parse(XContentParser, Object)- Throws:
IOException
-
parse
- Parameters:
name- The name of the expression tree within its containing object. Used to provide descriptive error messages.content- The XContent (typically JSON) DSL representation of the expression- Throws:
IOException
-
parse
public RoleMapperExpression parse(String name, org.elasticsearch.xcontent.XContentParser parser) throws IOException - Parameters:
name- The name of the expression tree within its containing object. Used to provide descriptive error messages.parser- A parser over the XContent (typically JSON) DSL representation of the expression- Throws:
IOException
-