test_class.declarator: ENGAGE = Constraint.executable(AddressTemplate.of("j/l/p"), "engage")
test_class.modifier: private static final
test_class.original_string: private static final Constraint ENGAGE = Constraint.executable(AddressTemplate.of("j/l/p"), "engage");
test_class.type: Constraint
test_class.var_name: ENGAGE
test_class.declarator: NCC = Constraint.writable(AddressTemplate.of("da/ta"), "NCC-1701-D")
test_class.modifier: private static final
test_class.original_string: private static final Constraint NCC = Constraint.writable(AddressTemplate.of("da/ta"), "NCC-1701-D");
test_class.type: Constraint
test_class.var_name: NCC
test_class.declarator: ENGAGE_DATA = "executable(j/l/p:engage)"
test_class.modifier: private static final
test_class.original_string: private static final String ENGAGE_DATA = "executable(j/l/p:engage)";
test_class.type: String
test_class.var_name: ENGAGE_DATA
test_class.declarator: NCC_DATA = "writable(da/ta@NCC-1701-D)"
test_class.modifier: private static final
test_class.original_string: private static final String NCC_DATA = "writable(da/ta@NCC-1701-D)";
test_class.type: String
test_class.var_name: NCC_DATA
test_class.declarator: AND_DATA = ENGAGE_DATA + "&" + NCC_DATA
test_class.modifier: private static final
test_class.original_string: private static final String AND_DATA = ENGAGE_DATA + "&" + NCC_DATA;
test_class.type: String
test_class.var_name: AND_DATA
test_class.declarator: OR_DATA = ENGAGE_DATA + "|" + NCC_DATA
test_class.modifier: private static final
test_class.original_string: private static final String OR_DATA = ENGAGE_DATA + "|" + NCC_DATA;
test_class.type: String
test_class.var_name: OR_DATA
test_class.file: meta/src/test/java/org/jboss/hal/meta/security/ConstraintsTest.java
test_class.identifier: ConstraintsTest
test_case.body: @Test
      public void parseEmpty() {
          Constraints constraints = Constraints.parse("");
          assertEmpty(constraints);
      }
test_case.class_method_signature: ConstraintsTest.parseEmpty()
test_case.full_signature: @Test public void parseEmpty()
test_case.identifier: parseEmpty
test_case.invocations: parse assertEmpty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void parseEmpty()
focal_class.declarator: constraints
focal_class.modifier: private final
focal_class.original_string: private final LinkedHashSet<Constraint> constraints;
focal_class.type: LinkedHashSet<Constraint>
focal_class.var_name: constraints
focal_class.declarator: operator
focal_class.modifier: private final
focal_class.original_string: private final Operator operator;
focal_class.type: Operator
focal_class.var_name: operator
focal_class.file: meta/src/main/java/org/jboss/hal/meta/security/Constraints.java
focal_class.identifier: Constraints
focal_class.interfaces: implements Iterable<Constraint>
focal_class.class_method_signature: Constraints.single(Constraint constraint)
focal_class.full_signature: public static Constraints single(Constraint constraint)
focal_class.identifier: single
focal_class.modifiers: public static
focal_class.parameters: (Constraint constraint)
focal_class.return: Constraints
focal_class.signature: Constraints single(Constraint constraint)
focal_class.class_method_signature: Constraints.and(Constraint first, Constraint... rest)
focal_class.full_signature: public static Constraints and(Constraint first, Constraint... rest)
focal_class.identifier: and
focal_class.modifiers: public static
focal_class.parameters: (Constraint first, Constraint... rest)
focal_class.return: Constraints
focal_class.signature: Constraints and(Constraint first, Constraint... rest)
focal_class.class_method_signature: Constraints.and(Iterable<Constraint> constraints)
focal_class.full_signature: public static Constraints and(Iterable<Constraint> constraints)
focal_class.identifier: and
focal_class.modifiers: public static
focal_class.parameters: (Iterable<Constraint> constraints)
focal_class.return: Constraints
focal_class.signature: Constraints and(Iterable<Constraint> constraints)
focal_class.class_method_signature: Constraints.or(Constraint first, Constraint... rest)
focal_class.full_signature: public static Constraints or(Constraint first, Constraint... rest)
focal_class.identifier: or
focal_class.modifiers: public static
focal_class.parameters: (Constraint first, Constraint... rest)
focal_class.return: Constraints
focal_class.signature: Constraints or(Constraint first, Constraint... rest)
focal_class.class_method_signature: Constraints.or(Iterable<Constraint> constraints)
focal_class.full_signature: public static Constraints or(Iterable<Constraint> constraints)
focal_class.identifier: or
focal_class.modifiers: public static
focal_class.parameters: (Iterable<Constraint> constraints)
focal_class.return: Constraints
focal_class.signature: Constraints or(Iterable<Constraint> constraints)
focal_class.class_method_signature: Constraints.empty()
focal_class.full_signature: public static Constraints empty()
focal_class.identifier: empty
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Constraints
focal_class.signature: Constraints empty()
focal_class.class_method_signature: Constraints.parse(String input)
focal_class.full_signature: public static Constraints parse(String input)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String input)
focal_class.return: Constraints
focal_class.signature: Constraints parse(String input)
focal_class.class_method_signature: Constraints.Constraints(LinkedHashSet<Constraint> constraints, Operator operator)
focal_class.full_signature: private  Constraints(LinkedHashSet<Constraint> constraints, Operator operator)
focal_class.identifier: Constraints
focal_class.modifiers: private
focal_class.parameters: (LinkedHashSet<Constraint> constraints, Operator operator)
focal_class.signature:  Constraints(LinkedHashSet<Constraint> constraints, Operator operator)
focal_class.class_method_signature: Constraints.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Constraints.data()
focal_class.full_signature: public String data()
focal_class.identifier: data
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String data()
focal_class.class_method_signature: Constraints.iterator()
focal_class.full_signature: @Override public Iterator<Constraint> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<Constraint>
focal_class.signature: Iterator<Constraint> iterator()
focal_class.class_method_signature: Constraints.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: Constraints.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: Constraints.contains(Object o)
focal_class.full_signature: public boolean contains(Object o)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean contains(Object o)
focal_class.class_method_signature: Constraints.getConstraints()
focal_class.full_signature: public Set<Constraint> getConstraints()
focal_class.identifier: getConstraints
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<Constraint>
focal_class.signature: Set<Constraint> getConstraints()
focal_class.class_method_signature: Constraints.getOperator()
focal_class.full_signature: public Operator getOperator()
focal_class.identifier: getOperator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Operator
focal_class.signature: Operator getOperator()
focal_method.body: public static Constraints parse(String input) {
          if (emptyToNull(input) != null) {
              Operator operator;
              if (input.contains(AND.operator)) {
                  operator = AND;
              } else if (input.contains(OR.operator)) {
                  operator = OR;
              } else {
                  operator = AND;
              }
              Iterable<String> values = Splitter.on(operator.operator)
                      .omitEmptyStrings()
                      .trimResults()
                      .split(input);
              LinkedHashSet<Constraint> constraints = new LinkedHashSet<>();
              for (String value : values) {
                  try {
                      constraints.add(Constraint.parse(value));
                  } catch (IllegalArgumentException ignored) {
                  }
              }
              return new Constraints(constraints, operator);
  
          } else {
              return empty();
          }
      }
focal_method.class_method_signature: Constraints.parse(String input)
focal_method.full_signature: public static Constraints parse(String input)
focal_method.identifier: parse
focal_method.invocations: emptyToNull contains contains split trimResults omitEmptyStrings on add parse empty
focal_method.modifiers: public static
focal_method.parameters: (String input)
focal_method.return: Constraints
focal_method.signature: Constraints parse(String input)