Package org.w3c.css.sac

Examples of org.w3c.css.sac.Condition


/**
* @exception ParseException exception during the parse
*/
  final public Selector simple_selector(Selector selector, char comb) throws ParseException {
    SimpleSelector simple_current = null;
    Condition cond = null;

    pseudoElt = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case ANY:
    case IDENT:
View Full Code Here


/**
* @exception ParseException exception during the parse
*/
  final public Condition _class(Condition pred) throws ParseException {
Token n;
Condition c;
    jj_consume_token(DOT);
    n = jj_consume_token(IDENT);
          c = conditionFactory.createClassCondition(null, n.image);
          if (pred == null) {
              {if (true) return c;}
View Full Code Here

      jj_la1[87] = jj_gen;
      ;
    }
    jj_consume_token(RBRACKET);
      String name = convertIdent(att.image);
      Condition c;
      switch (cases) {
          case 0:
          c = conditionFactory.createAttributeCondition(name, null, false, null);
          break;
          case 1:
View Full Code Here

                } else {
                    pseudoElt = s;
                    {if (true) return pred;}
                }
            } else {
                Condition c =
                conditionFactory.createPseudoClassCondition(null, s);
                if (pred == null) {
                    {if (true) return c;}
                } else {
                    {if (true) return conditionFactory.createAndCondition(pred, c);}
                }
            }
      break;
    case FUNCTION:
      n = jj_consume_token(FUNCTION);
      label_60:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case S:
          ;
          break;
        default:
          jj_la1[88] = jj_gen;
          break label_60;
        }
        jj_consume_token(S);
      }
      language = jj_consume_token(IDENT);
      label_61:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case S:
          ;
          break;
        default:
          jj_la1[89] = jj_gen;
          break label_61;
        }
        jj_consume_token(S);
      }
      jj_consume_token(LPARAN);
                  String f = convertIdent(n.image);
                  if (f.equals("lang(")) {
                      Condition d =
              conditionFactory.createLangCondition(convertIdent(language.image));
                      if (pred == null) {
                          {if (true) return d;}
                      } else {
                          {if (true) return conditionFactory.createAndCondition(pred, d);}
View Full Code Here

* @exception ParseException exception during the parse
*/
  final public Condition hash(Condition pred) throws ParseException {
Token n;
    n = jj_consume_token(HASH);
      Condition d =
          conditionFactory.createIdCondition(n.image.substring(1));
      if (pred == null) {
          {if (true) return d;}
      } else {
          {if (true) return conditionFactory.createAndCondition(pred, d);}
View Full Code Here

/**
* @exception ParseException exception during the parse
*/
  final public Selector simple_selector(Selector selector, char comb) throws ParseException {
    SimpleSelector simple_current = null;
    Condition cond = null;

    pseudoElt = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case ANY:
    case IDENT:
View Full Code Here

/**
* @exception ParseException exception during the parse
*/
  final public Condition _class(Condition pred) throws ParseException {
Token n;
Condition c;
    jj_consume_token(DOT);
    n = jj_consume_token(IDENT);
          c = conditionFactory.createClassCondition(null, n.image);
          if (pred == null) {
              {if (true) return c;}
View Full Code Here

      jj_la1[87] = jj_gen;
      ;
    }
    jj_consume_token(RBRACKET);
      String name = convertIdent(att.image);
      Condition c;
      switch (cases) {
          case 0:
          c = conditionFactory.createAttributeCondition(name, null, false, null);
          break;
          case 1:
View Full Code Here

                } else {
                    pseudoElt = s;
                    {if (true) return pred;}
                }
            } else {
                Condition c =
                conditionFactory.createPseudoClassCondition(null, s);
                if (pred == null) {
                    {if (true) return c;}
                } else {
                    {if (true) return conditionFactory.createAndCondition(pred, c);}
                }
            }
      break;
    case FUNCTION:
      n = jj_consume_token(FUNCTION);
      label_60:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case S:
          ;
          break;
        default:
          jj_la1[88] = jj_gen;
          break label_60;
        }
        jj_consume_token(S);
      }
      language = jj_consume_token(IDENT);
      label_61:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case S:
          ;
          break;
        default:
          jj_la1[89] = jj_gen;
          break label_61;
        }
        jj_consume_token(S);
      }
      jj_consume_token(LPARAN);
                  String f = convertIdent(n.image);
                  if (f.equals("lang(")) {
                      Condition d =
              conditionFactory.createLangCondition(convertIdent(language.image));
                      if (pred == null) {
                          {if (true) return d;}
                      } else {
                          {if (true) return conditionFactory.createAndCondition(pred, d);}
View Full Code Here

* @exception ParseException exception during the parse
*/
  final public Condition hash(Condition pred) throws ParseException {
Token n;
    n = jj_consume_token(HASH);
      Condition d =
          conditionFactory.createIdCondition(n.image.substring(1));
      if (pred == null) {
          {if (true) return d;}
      } else {
          {if (true) return conditionFactory.createAndCondition(pred, d);}
View Full Code Here

TOP

Related Classes of org.w3c.css.sac.Condition

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.