Package org.zkoss.zuss.metainfo

Examples of org.zkoss.zuss.metainfo.ConstantValue


  }
  private void parseStyleValue(Context ctx, Other name) throws IOException {
    StyleDefinition sdef = new StyleDefinition(ctx.block.owner, name.getValue(), name.getLine());
    for (Token token; (token = next(ctx)) != null;) {
      if (token instanceof Other) {
        new ConstantValue(sdef, ((Other)token).getValue(), token.getLine());
      } else if (token instanceof Symbol) {
        final char symbol = ((Symbol)token).getValue();
        if (symbol == ';')
          break; //done
        if (symbol == '}') {
          putback(token);
          break; //done
        }
        if (",()+-*/".indexOf(symbol) < 0)
          throw error("unexpected '" + symbol + '\'', token);
        new ConstantValue(sdef, "" + symbol, token.getLine());
      } else if (token instanceof Id) {
        //handle @xx or @xxx()
        if (_in.peek() == '(') { //a function invocation
          putback(token);
          parseExpression(ctx, new Expression(sdef, token.getLine()), EOPAREN);
View Full Code Here


              ops.add(0, new Op(FUNC, nm, token.getLine())); //pass name as op's data
              continue; //opExpected still false
            }
          }
        } else if (token instanceof Other)
          new ConstantValue(expr, ((Other)token).getValue(), token.getLine());
        else
          throw error("unexpected "+token, token);
        opExpected = true;
      }
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zuss.metainfo.ConstantValue

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.