Class RoleMapperExpressionParser


public final class RoleMapperExpressionParser
extends java.lang.Object
Parses the JSON (XContent) based boolean expression DSL into a tree of RoleMapperExpression objects. Note: As this is client side parser, it mostly validates the structure of DSL being parsed it does not enforce rules like allowing "except" within "except" or "any" expressions.
  • Field Summary

    Modifier and Type Field Description
    static org.elasticsearch.common.ParseField FIELD  
  • Constructor Summary

    Constructor Description
  • Method Summary

    Modifier and Type Method Description
    static RoleMapperExpression fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    RoleMapperExpression parse​(java.lang.String name, org.elasticsearch.common.xcontent.XContentParser parser)  
    static RoleMapperExpression parseObject​(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String id)
    This function exists to be compatible with ContextParser.parse(XContentParser, Object)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FIELD

      public static final org.elasticsearch.common.ParseField FIELD
  • Constructor Details

    • RoleMapperExpressionParser

      public RoleMapperExpressionParser()
  • Method Details

    • fromXContent

      public static RoleMapperExpression fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser) throws
    • parseObject

      public static RoleMapperExpression parseObject​(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String id) throws
      This function exists to be compatible with ContextParser.parse(XContentParser, Object)
    • parse

      public RoleMapperExpression parse​(java.lang.String name, org.elasticsearch.common.xcontent.XContentParser parser) throws
      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