Package com.getperka.flatpack.policy.pst

Examples of com.getperka.flatpack.policy.pst.GroupBlock


      return false;
    }

    @Override
    public boolean visit(GroupBlock x) {
      GroupBlock n = new GroupBlock();
      n.setDefinitions(clone(x.getDefinitions()));
      n.setInheritFrom(clone(x.getInheritFrom()));
      stack.push(n);
      return false;
    }
View Full Code Here


   * <pre>
   * group [ inherit somePropertyName ] [ groupDefinition ];
   * </pre>
   */
  Rule Group() {
    final Var<GroupBlock> var = new Var<GroupBlock>(new GroupBlock());
    return Sequence(
        "group",
        MaybeInherit(Property.class, var),
        ZeroOneOrBlock(GroupDefinition(), GroupDefinition.class),
        new Action<Object>() {
          @Override
          @SuppressWarnings("unchecked")
          public boolean run(Context<Object> ctx) {
            GroupBlock x = var.get();
            x.setDefinitions((List<GroupDefinition>) pop());
            push(x);
            return true;
          }
        });
  }
View Full Code Here

TOP

Related Classes of com.getperka.flatpack.policy.pst.GroupBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.