Examples of Optional

A common alternative to using this class is to find or create a suitable null object for the type in question.

This class is not intended as a direct analogue of any existing "option" or "maybe" construct from other programming environments, though it may bear some similarities. @param < T> the type of instance that can be contained. {@code Optional} is naturallycovariant on this type, so it is safe to cast an {@code Optional} to {@code Optional} for any supertype {@code S} of {@code T}. @author Kurt Alfred Kluever @author Kevin Bourrillion @since Guava release 10

  • com.google.gwt.i18n.client.Messages.Optional
  • com.linkedin.restli.server.annotations.Optional
  • com.sun.star.beans.Optional
  • lupos.engine.operators.multiinput.optional.Optional
  • lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Optional
  • net.sf.laja.parser.engine2.element.Optional
  • org.apache.isis.applib.annotation.Optional
  • org.eclipse.papyrus.sysml.activities.Optional
    A representation of the model object ' Optional'.

    The following features are supported:

    • {@link org.eclipse.papyrus.sysml.activities.Optional#getBase_Parameter Base Parameter}

    @see org.eclipse.papyrus.sysml.activities.ActivitiesPackage#getOptional() @model @generated
  • org.hamcrest.text.pattern.internal.ast.Optional
  • org.jrdf.query.expression.Optional
  • org.supercsv.cellprocessor.Optional
    This processor returns null if it meets the empty String in a column and does not call subsequent processors in its chain. It is a simple customization of the MagicToken. If you need to return different values than null, use that class instead. @author Kasper B. Graversen

  • Examples of lupos.engine.operators.multiinput.optional.Optional

      @Override
      public Tuple<Collection<BasicOperator>, Collection<BasicOperator>> transformOperatorGraph(
          final Map<String, BasicOperator> mso,
          final BasicOperator rootOperator) {
        final GenerateAddEnv genAdd = (GenerateAddEnv) mso.get("genAdd");
        final Optional optional = (Optional) mso.get("optional");

        final LinkedList<BasicOperator> pres = (LinkedList<BasicOperator>) genAdd
            .getPrecedingOperators();
        final LinkedList<OperatorIDTuple> succs = (LinkedList<OperatorIDTuple>) optional
            .getSucceedingOperators();

        BasicOperator pre;
        for (int i = 0; i < pres.size(); i++) {
          pre = pres.get(i);
          pre.addSucceedingOperator(new OperatorIDTuple(optional, 0));
          pre.removeSucceedingOperator(genAdd);
          optional.addPrecedingOperator(pre);
        }

        optional.removePrecedingOperator(genAdd);
        optional.setSucceedingOperator(new OperatorIDTuple(genAdd, 0));

        genAdd.setPrecedingOperator(optional);
        genAdd.setSucceedingOperators(succs);

        BasicOperator succ;
    View Full Code Here

    Examples of lupos.engine.operators.multiinput.optional.Optional

    public class RuleOptionalWithParallelOperands extends
        RuleJoinWithParallelOperands {
      @Override
      protected void init() {
        final Operator a = new Optional();

        subGraphMap = new HashMap<BasicOperator, String>();
        subGraphMap.put(a, "join");

        startNode = a;
    View Full Code Here

    Examples of lupos.engine.operators.multiinput.optional.Optional

    public class RuleOptionalLastParallelOperands extends
        RuleJoinLastParallelOperands {

      @Override
      protected void init() {
        final Operator a = new Optional();

        subGraphMap = new HashMap<BasicOperator, String>();
        subGraphMap.put(a, "join");

        startNode = a;
    View Full Code Here

    Examples of lupos.engine.operators.multiinput.optional.Optional

            }
          }
          for (int i = 0; i < node.jjtGetNumChildren(); i++) {
            final Node n = node.jjtGetChild(i);
            if (n instanceof ASTOptionalConstraint) {
              final Optional opt = new Optional();
              connection.connectAndSetAsNewOperatorConnection(opt, 1);
              n.accept(this, connection, graphConstraint);
              connection.setOperatorConnection(opt, 0);
            } else if (n instanceof ASTMinus) {
              Minus minus = null;
    View Full Code Here

    Examples of lupos.engine.operators.multiinput.optional.Optional

    public class RuleReplaceLitOverOptional extends Rule {

      @Override
      protected void init() {
        final ReplaceLit replaceLit = new ReplaceLit();
        final Optional optional = new Optional();

        // Only left Operand
        replaceLit.setSucceedingOperator(new OperatorIDTuple(optional, 0));
        optional.setPrecedingOperator(replaceLit);

        subGraphMap = new HashMap<BasicOperator, String>();
        subGraphMap.put(replaceLit, "replaceLit");
        subGraphMap.put(optional, "optional");
    View Full Code Here

    Examples of lupos.engine.operators.multiinput.optional.Optional

        startNode = replaceLit;
      }

      @Override
      protected boolean checkPrecondition(final Map<String, BasicOperator> mso) {
        final Optional optional = (Optional) mso.get("optional");
        final ReplaceLit replaceLit = (ReplaceLit) mso.get("replaceLit");

        final Object[] optionalVars = optional.getIntersectionVariables()
            .toArray();
        final LinkedList<Variable> v = replaceLit.getSubstitutionsLiteralLeft();

        // If there is minimum one substitution which can be pulled down
        for (int i = 0; i < v.size(); i++) {
    View Full Code Here

    Examples of lupos.engine.operators.multiinput.optional.Optional

          final Map<String, BasicOperator> mso,
          final BasicOperator rootOperator) {
        final Collection<BasicOperator> deleted = new LinkedList<BasicOperator>();
        final Collection<BasicOperator> added = new LinkedList<BasicOperator>();
        final ReplaceLit replaceLit = (ReplaceLit) mso.get("replaceLit");
        final Optional optional = (Optional) mso.get("optional");

        final ReplaceLit replaceLitUnder = new ReplaceLit();
        added.add(replaceLitUnder);

        final Object[] optionalVars = optional.getIntersectionVariables()
            .toArray();
        final LinkedList<Variable> replaceLitLeft = replaceLit
            .getSubstitutionsLiteralLeft();
        final LinkedList<Literal> replaceLitRight = replaceLit
            .getSubstitutionsLiteralRight();
        Variable var;
        Literal lit;

        for (int i = 0; i < replaceLitLeft.size(); i++) {
          var = replaceLitLeft.get(i);
          // Split ReplaceLit and pull only not intersection variables
          // downwards
          if (!arrayContains(optionalVars, var)) {
            lit = replaceLitRight.get(i);
            replaceLitUnder.addSubstitution(var, lit);
            replaceLit.removeSubstitutionVars(i);
          }
        }

        final LinkedList<BasicOperator> pres = (LinkedList<BasicOperator>) replaceLit
            .getPrecedingOperators();
        final LinkedList<OperatorIDTuple> succs = (LinkedList<OperatorIDTuple>) optional
            .getSucceedingOperators();
        final int index = replaceLit.getOperatorIDTuple(optional).getId();

        // If everything could be pushed downwards, the old ReplaceLit can be
        // deleted
        if (replaceLit.getSubstitutionsLiteralLeft().size() == 0) {
          BasicOperator pre;
          for (int i = 0; i < pres.size(); i++) {
            pre = pres.get(i);
            pre.addSucceedingOperator(new OperatorIDTuple(optional, index));
            pre.removeSucceedingOperator(replaceLit);
            optional.addPrecedingOperator(pre);
          }
          optional.removePrecedingOperator(replaceLit);
          deleted.add(replaceLit);
        }

        // Insert the new ReplaceLit under the Optional
        optional.setSucceedingOperator(new OperatorIDTuple(replaceLitUnder, 0));

        replaceLitUnder.setPrecedingOperator(optional);
        replaceLitUnder.setSucceedingOperators(succs);

        BasicOperator succ;
    View Full Code Here

    Examples of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Optional

          for (int i = 0; i < node.jjtGetNumChildren(); i++) {
            final Node n = node.jjtGetChild(i);

            if (n instanceof ASTOptionalConstraint) {
              final Optional optional = new Optional();

              if (testOP != null) {
                optional.addSucceedingOperator(new OperatorIDTuple<Operator>(
                    testOP, 0));
              }

              testOP = (Operator) n.jjtAccept(
                  this, null);

              if (testOP != null) {
                optional.addSucceedingOperator(new OperatorIDTuple<Operator>(
                    testOP, 1));
              }

              testOP = optional;
            }
    View Full Code Here

    Examples of net.sf.laja.parser.engine2.element.Optional

        // *** Declarations and Statements ***
        OrList cr = new OrList(1, "cr");
        OrList comment = new OrList(2, "comment");
        Repeat ws = new Repeat(3, "ws");
        Optional s = new Optional(4, "s");
        Str a = new Str(5, "a");
        Str b = new Str(6, "b");
        Str c = new Str(7, "c");
        Str d = new Str(8, "d");
        Str ab = new Str(9, "ab");
        Str cd = new Str(10, "cd");
        Repeat ar = new Repeat(11, "ar");
        Repeat br = new Repeat(12, "br");
        Repeat dr = new Repeat(13, "dr");
        Repeat er = new Repeat(14, "er");
        ElementList t111 = new ElementList(15, "t111");
        ElementList t112 = new ElementList(16, "t112");
        Repeat t113 = new Repeat(17, "t113");
        ElementList t114 = new ElementList(18, "t114");
        ElementList t121 = new ElementList(19, "t121");
        ElementList t122 = new ElementList(20, "t122");
        Repeat t123 = new Repeat(21, "t123");
        ElementList t124 = new ElementList(22, "t124");
        ElementList t131 = new ElementList(23, "t131", NOT, testcaseT131X);
        ElementList t132 = new ElementList(24, "t132", NOT, testcaseT132X);
        Repeat t133 = new Repeat(25, "t133", NOT, testcaseT133X);
        ElementList t134 = new ElementList(26, "t134", NOT, testcaseT134X);
        ElementList t141 = new ElementList(27, "t141");
        Repeat t142 = new Repeat(28, "t142");
        ElementList t143 = new ElementList(29, "t143");
        Repeat t144 = new Repeat(30, "t144");
        Optional t151 = new Optional(31, "t151");
        ElementList t152 = new ElementList(32, "t152");
        Optional t153 = new Optional(33, "t153");
        ElementList t154 = new ElementList(34, "t154");
        Optional t161 = new Optional(35, "t161");
        ElementList t162 = new ElementList(36, "t162");
        Optional t163 = new Optional(37, "t163");
        ElementList t164 = new ElementList(38, "t164");
        Optional t165 = new Optional(39, "t165", testcaseT165X);
        ElementList t211 = new ElementList(40, "t211");
        ElementList t212 = new ElementList(41, "t212");
        Optional t213 = new Optional(42, "t213");
        Optional t214 = new Optional(43, "t214");
        Repeat t311 = new Repeat(44, "t311", new net.sf.laja.parser.engine2.Repeats(3));
        Repeat t312 = new Repeat(45, "t312", new net.sf.laja.parser.engine2.Repeats(3,5));
        ElementList t313a = new ElementList(46, "t313a");
        Repeat t313 = new Repeat(47, "t313", new net.sf.laja.parser.engine2.Repeats(2));
        ElementList t411 = new ElementList(48, "t411");
        Repeat t511a = new Repeat(49, "t511a");
        ElementList t511 = new ElementList(50, "t511");
        ElementList t512 = new ElementList(51, "t512");
        ElementList testcase = new ElementList(52, "testcase");

        // cr = ("\r" ["\n"]) | "\n"
        ElementList cr_1 = new ElementList(53, "cr_1");
        cr_1.add(55, new Str(54, "\r"));
        Optional cr_1_1 = new Optional(56, "cr_1_1");
        cr_1_1.add(58, new Str(57, "\n"));
        cr_1.add(59, cr_1_1);
        cr.add(60, cr_1);
        cr.add(62, new Str(61, "\n"));

        // comment = ("/*" [!"*/"+] "*/") | ("//" [!(cr|END)+] cr|END)
        ElementList comment_1 = new ElementList(63, "comment_1");
        comment_1.add(65, new Str(64, "/*"));
        Optional comment_1_1 = new Optional(66, "comment_1_1");
        Repeat comment_1_1_1 = new Repeat(67, "comment_1_1_1");
        comment_1_1_1.add(69, new Str(68, "*/", NOT));
        comment_1_1.add(70, comment_1_1_1);
        comment_1.add(71, comment_1_1);
        comment_1.add(73, new Str(72, "*/"));
        comment.add(74, comment_1);
        ElementList comment_2 = new ElementList(75, "comment_2");
        comment_2.add(77, new Str(76, "//"));
        Optional comment_2_1 = new Optional(78, "comment_2_1");
        Repeat comment_2_1_1 = new Repeat(79, "comment_2_1_1");
        OrList comment_2_1_1_1 = new OrList(80, "comment_2_1_1_1");
        comment_2_1_1_1.add(81, cr);
        comment_2_1_1_1.add(83, new End(82, "comment_2_1_1_1"));
        comment_2_1_1.add(84, comment_2_1_1_1, NOT);
        comment_2_1.add(85, comment_2_1_1);
        comment_2.add(86, comment_2_1);
        OrList comment_2_2 = new OrList(87, "comment_2_2");
        comment_2_2.add(88, cr);
        comment_2_2.add(90, new End(89, "comment_2_2"));
        comment_2.add(91, comment_2_2);
        comment.add(92, comment_2);

        // ws = (cr | " " | "\t" | comment)+
        OrList ws_1 = new OrList(93, "ws_1");
        ws_1.add(94, cr);
        ws_1.add(96, new Str(95, " "));
        ws_1.add(98, new Str(97, "\t"));
        ws_1.add(99, comment);
        ws.add(100, ws_1);

        // s = [ws]
        s.add(101, ws);

        // a = "a"

        // b = "b"

        // c = "c"

        // d = "d"

        // ab = "ab"

        // cd = "cd"

        // ar = "a"+
        ar.add(103, new Str(102, "a"));

        // br = "b"+
        br.add(105, new Str(104, "b"));

        // dr = "d"+
        dr.add(107, new Str(106, "d"));

        // er = "e"+
        er.add(109, new Str(108, "e"));

        // t111 = ab
        t111.add(110, ab, testcaseT111Ab);

        // t112 = !ab
        t112.add(111, ab, NOT, testcaseT112Ab);

        // t113 = ab+
        t113.add(112, ab, testcaseT113Ab);

        // t114 = !ab:notab+ ab
        Repeat t114_1 = new Repeat(113, "t114_1");
        t114_1.add(114, ab, NOT, testcaseT114Notab);
        t114.add(115, t114_1);
        t114.add(116, ab);

        // t121 = (ab)
        t121.add(117, ab, testcaseT121Ab);

        // t122 = (!ab)
        t122.add(118, ab, NOT, testcaseT122Ab);

        // t123 = (ab+)
        t123.add(119, ab, testcaseT123Ab);

        // t124 = (!ab:notab+) ab
        Repeat t124_1 = new Repeat(120, "t124_1");
        t124_1.add(121, ab, NOT, testcaseT124Notab);
        t124.add(122, t124_1);
        t124.add(123, ab);

        // t131 = !(ab):x
        t131.add(124, ab, testcaseT131Ab);

        // t132 = !(!a):x
        t132.add(125, a, NOT, testcaseT132A);

        // t133 = !(ab+):x
        t133.add(126, ab);

        // t134 = !(!a+):x
        Repeat t134_1 = new Repeat(127, "t134_1");
        t134_1.add(128, a, NOT);
        t134.add(129, t134_1);

        // t141 = !(ab:notab):x+ ab
        Repeat t141_1 = new Repeat(130, "t141_1");
        ElementList t141_1_1 = new ElementList(131, "t141_1_1");
        t141_1_1.add(132, ab, testcaseT141Notab);
        t141_1.add(133, t141_1_1, NOT, testcaseT141X);
        t141.add(134, t141_1);
        t141.add(135, ab, testcaseT141Ab);

        // t142 = !(!a):x+
        ElementList t142_1 = new ElementList(136, "t142_1");
        t142_1.add(137, a, NOT, testcaseT142A);
        t142.add(138, t142_1, NOT, testcaseT142X);

        // t143 = !(ab:notab+):x+ ab
        Repeat t143_1 = new Repeat(139, "t143_1");
        Repeat t143_1_1 = new Repeat(140, "t143_1_1");
        t143_1_1.add(141, ab, testcaseT143Notab);
        t143_1.add(142, t143_1_1, NOT, testcaseT143X);
        t143.add(143, t143_1);
        t143.add(144, ab, testcaseT143Ab);

        // t144 = !(!a+):x+
        Repeat t144_1 = new Repeat(145, "t144_1");
        t144_1.add(146, a, NOT, testcaseT144A);
        t144.add(147, t144_1, NOT, testcaseT144X);

        // t151 = [ab]
        t151.add(148, ab, testcaseT151Ab);

        // t152 = [!ab:notab] ab
        Optional t152_1 = new Optional(149, "t152_1");
        t152_1.add(150, ab, NOT, testcaseT152Notab);
        t152.add(151, t152_1);
        t152.add(152, ab);

        // t153 = [ab+]
        Repeat t153_1 = new Repeat(153, "t153_1");
        t153_1.add(154, ab, testcaseT153Ab);
        t153.add(155, t153_1);

        // t154 = [!ab:notab+] ab
        Optional t154_1 = new Optional(156, "t154_1");
        Repeat t154_1_1 = new Repeat(157, "t154_1_1");
        t154_1_1.add(158, ab, NOT, testcaseT154Notab);
        t154_1.add(159, t154_1_1);
        t154.add(160, t154_1);
        t154.add(161, ab);

        // t161 = [ab]+
        Repeat t161_1 = new Repeat(162, "t161_1");
        t161_1.add(163, ab, testcaseT161Ab);
        t161.add(164, t161_1);

        // t162 = [!ab:notab]+ ab
        Optional t162_1 = new Optional(165, "t162_1");
        Repeat t162_1_1 = new Repeat(166, "t162_1_1");
        t162_1_1.add(167, ab, NOT, testcaseT162Notab);
        t162_1.add(168, t162_1_1);
        t162.add(169, t162_1);
        t162.add(170, ab);

        // t163 = [ab+]+
        Repeat t163_1 = new Repeat(171, "t163_1");
        Repeat t163_1_1 = new Repeat(172, "t163_1_1");
        t163_1_1.add(173, ab, testcaseT163Ab);
        t163_1.add(174, t163_1_1);
        t163.add(175, t163_1);

        // t164 = [!ab:notab+]+ ab
        Optional t164_1 = new Optional(176, "t164_1");
        Repeat t164_1_1 = new Repeat(177, "t164_1_1");
        Repeat t164_1_1_1 = new Repeat(178, "t164_1_1_1");
        t164_1_1_1.add(179, ab, NOT, testcaseT164Notab);
        t164_1_1.add(180, t164_1_1_1);
        t164_1.add(181, t164_1_1);
        t164.add(182, t164_1);
        t164.add(183, ab);

        // t165 = [ab]:x
        t165.add(184, ab);
    View Full Code Here

    Examples of net.sf.laja.parser.engine2.element.Optional

        // *** Declarations and Statements ***
        OrList cr = new OrList(1, "cr");
        OrList comment = new OrList(2, "comment");
        Repeat ws = new Repeat(3, "ws");
        Optional s = new Optional(4, "s");
        Str a = new Str(5, "a");
        Str b = new Str(6, "b");
        Str c = new Str(7, "c");
        Str d = new Str(8, "d");
        Str ab = new Str(9, "ab");
        Str cd = new Str(10, "cd");
        Repeat ar = new Repeat(11, "ar");
        Repeat br = new Repeat(12, "br");
        Repeat dr = new Repeat(13, "dr");
        Repeat er = new Repeat(14, "er");
        ElementList t111 = new ElementList(15, "t111");
        ElementList t112 = new ElementList(16, "t112");
        Repeat t113 = new Repeat(17, "t113");
        ElementList t114 = new ElementList(18, "t114");
        ElementList t121 = new ElementList(19, "t121");
        ElementList t122 = new ElementList(20, "t122");
        Repeat t123 = new Repeat(21, "t123");
        ElementList t124 = new ElementList(22, "t124");
        ElementList t131 = new ElementList(23, "t131", NOT);
        ElementList t132 = new ElementList(24, "t132", NOT);
        Repeat t133 = new Repeat(25, "t133", NOT);
        ElementList t134 = new ElementList(26, "t134", NOT);
        ElementList t141 = new ElementList(27, "t141");
        Repeat t142 = new Repeat(28, "t142");
        ElementList t143 = new ElementList(29, "t143");
        Repeat t144 = new Repeat(30, "t144");
        Optional t151 = new Optional(31, "t151");
        ElementList t152 = new ElementList(32, "t152");
        Optional t153 = new Optional(33, "t153");
        ElementList t154 = new ElementList(34, "t154");
        Optional t161 = new Optional(35, "t161");
        ElementList t162 = new ElementList(36, "t162");
        Optional t163 = new Optional(37, "t163");
        ElementList t164 = new ElementList(38, "t164");
        Optional t165 = new Optional(39, "t165");
        ElementList t211 = new ElementList(40, "t211");
        ElementList t212 = new ElementList(41, "t212");
        Optional t213 = new Optional(42, "t213");
        Optional t214 = new Optional(43, "t214");
        Repeat t311 = new Repeat(44, "t311", new net.sf.laja.parser.engine2.Repeats(3));
        Repeat t312 = new Repeat(45, "t312", new net.sf.laja.parser.engine2.Repeats(3,5));
        ElementList t313a = new ElementList(46, "t313a");
        Repeat t313 = new Repeat(47, "t313", new net.sf.laja.parser.engine2.Repeats(2));
        ElementList t411 = new ElementList(48, "t411");
        Repeat t511a = new Repeat(49, "t511a");
        ElementList t511 = new ElementList(50, "t511");
        ElementList t512 = new ElementList(51, "t512");
        ElementList testcase = new ElementList(52, "testcase");

        // cr = ("\r" ["\n"]) | "\n"
        ElementList cr_1 = new ElementList(53, "cr_1");
        cr_1.add(55, new Str(54, "\r"));
        Optional cr_1_1 = new Optional(56, "cr_1_1");
        cr_1_1.add(58, new Str(57, "\n"));
        cr_1.add(59, cr_1_1);
        cr.add(60, cr_1);
        cr.add(62, new Str(61, "\n"));

        // comment = ("/*" [!"*/"+] "*/") | ("//" [!(cr|END)+] cr|END)
        ElementList comment_1 = new ElementList(63, "comment_1");
        comment_1.add(65, new Str(64, "/*"));
        Optional comment_1_1 = new Optional(66, "comment_1_1");
        Repeat comment_1_1_1 = new Repeat(67, "comment_1_1_1");
        comment_1_1_1.add(69, new Str(68, "*/", NOT));
        comment_1_1.add(70, comment_1_1_1);
        comment_1.add(71, comment_1_1);
        comment_1.add(73, new Str(72, "*/"));
        comment.add(74, comment_1);
        ElementList comment_2 = new ElementList(75, "comment_2");
        comment_2.add(77, new Str(76, "//"));
        Optional comment_2_1 = new Optional(78, "comment_2_1");
        Repeat comment_2_1_1 = new Repeat(79, "comment_2_1_1");
        OrList comment_2_1_1_1 = new OrList(80, "comment_2_1_1_1");
        comment_2_1_1_1.add(81, cr);
        comment_2_1_1_1.add(83, new End(82, "comment_2_1_1_1"));
        comment_2_1_1.add(84, comment_2_1_1_1, NOT);
        comment_2_1.add(85, comment_2_1_1);
        comment_2.add(86, comment_2_1);
        OrList comment_2_2 = new OrList(87, "comment_2_2");
        comment_2_2.add(88, cr);
        comment_2_2.add(90, new End(89, "comment_2_2"));
        comment_2.add(91, comment_2_2);
        comment.add(92, comment_2);

        // ws = (cr | " " | "\t" | comment)+
        OrList ws_1 = new OrList(93, "ws_1");
        ws_1.add(94, cr);
        ws_1.add(96, new Str(95, " "));
        ws_1.add(98, new Str(97, "\t"));
        ws_1.add(99, comment);
        ws.add(100, ws_1);

        // s = [ws]
        s.add(101, ws);

        // a = "a"

        // b = "b"

        // c = "c"

        // d = "d"

        // ab = "ab"

        // cd = "cd"

        // ar = "a"+
        ar.add(103, new Str(102, "a"));

        // br = "b"+
        br.add(105, new Str(104, "b"));

        // dr = "d"+
        dr.add(107, new Str(106, "d"));

        // er = "e"+
        er.add(109, new Str(108, "e"));

        // t111 = ab
        t111.add(110, ab);

        // t112 = !ab
        t112.add(111, ab, NOT);

        // t113 = ab+
        t113.add(112, ab);

        // t114 = !ab:notab+ ab
        Repeat t114_1 = new Repeat(113, "t114_1");
        t114_1.add(114, ab, NOT);
        t114.add(115, t114_1);
        t114.add(116, ab);

        // t121 = (ab)
        t121.add(117, ab);

        // t122 = (!ab)
        t122.add(118, ab, NOT);

        // t123 = (ab+)
        t123.add(119, ab);

        // t124 = (!ab:notab+) ab
        Repeat t124_1 = new Repeat(120, "t124_1");
        t124_1.add(121, ab, NOT);
        t124.add(122, t124_1);
        t124.add(123, ab);

        // t131 = !(ab):x
        t131.add(124, ab);

        // t132 = !(!a):x
        t132.add(125, a, NOT);

        // t133 = !(ab+):x
        t133.add(126, ab);

        // t134 = !(!a+):x
        Repeat t134_1 = new Repeat(127, "t134_1");
        t134_1.add(128, a, NOT);
        t134.add(129, t134_1);

        // t141 = !(ab:notab):x+ ab
        Repeat t141_1 = new Repeat(130, "t141_1");
        ElementList t141_1_1 = new ElementList(131, "t141_1_1");
        t141_1_1.add(132, ab);
        t141_1.add(133, t141_1_1, NOT);
        t141.add(134, t141_1);
        t141.add(135, ab);

        // t142 = !(!a):x+
        ElementList t142_1 = new ElementList(136, "t142_1");
        t142_1.add(137, a, NOT);
        t142.add(138, t142_1, NOT);

        // t143 = !(ab:notab+):x+ ab
        Repeat t143_1 = new Repeat(139, "t143_1");
        Repeat t143_1_1 = new Repeat(140, "t143_1_1");
        t143_1_1.add(141, ab);
        t143_1.add(142, t143_1_1, NOT);
        t143.add(143, t143_1);
        t143.add(144, ab);

        // t144 = !(!a+):x+
        Repeat t144_1 = new Repeat(145, "t144_1");
        t144_1.add(146, a, NOT);
        t144.add(147, t144_1, NOT);

        // t151 = [ab]
        t151.add(148, ab);

        // t152 = [!ab:notab] ab
        Optional t152_1 = new Optional(149, "t152_1");
        t152_1.add(150, ab, NOT);
        t152.add(151, t152_1);
        t152.add(152, ab);

        // t153 = [ab+]
        Repeat t153_1 = new Repeat(153, "t153_1");
        t153_1.add(154, ab);
        t153.add(155, t153_1);

        // t154 = [!ab:notab+] ab
        Optional t154_1 = new Optional(156, "t154_1");
        Repeat t154_1_1 = new Repeat(157, "t154_1_1");
        t154_1_1.add(158, ab, NOT);
        t154_1.add(159, t154_1_1);
        t154.add(160, t154_1);
        t154.add(161, ab);

        // t161 = [ab]+
        Repeat t161_1 = new Repeat(162, "t161_1");
        t161_1.add(163, ab);
        t161.add(164, t161_1);

        // t162 = [!ab:notab]+ ab
        Optional t162_1 = new Optional(165, "t162_1");
        Repeat t162_1_1 = new Repeat(166, "t162_1_1");
        t162_1_1.add(167, ab, NOT);
        t162_1.add(168, t162_1_1);
        t162.add(169, t162_1);
        t162.add(170, ab);

        // t163 = [ab+]+
        Repeat t163_1 = new Repeat(171, "t163_1");
        Repeat t163_1_1 = new Repeat(172, "t163_1_1");
        t163_1_1.add(173, ab);
        t163_1.add(174, t163_1_1);
        t163.add(175, t163_1);

        // t164 = [!ab:notab+]+ ab
        Optional t164_1 = new Optional(176, "t164_1");
        Repeat t164_1_1 = new Repeat(177, "t164_1_1");
        Repeat t164_1_1_1 = new Repeat(178, "t164_1_1_1");
        t164_1_1_1.add(179, ab, NOT);
        t164_1_1.add(180, t164_1_1_1);
        t164_1.add(181, t164_1_1);
        t164.add(182, t164_1);
        t164.add(183, ab);

        // t165 = [ab]:x
        t165.add(184, ab);
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.