Examples of ConstantValue


Examples of org.aspectj.apache.bcel.classfile.ConstantValue

    int signatureIndex = cp.addUtf8(signature);

    if (value != null) {
      checkType(type);
      int index = addConstant();
      addAttribute(new ConstantValue(cp.addUtf8("ConstantValue"), 2, index, cp));
    }

    addAnnotationsAsAttribute(cp);

    return new Field(modifiers, nameIndex, signatureIndex, getAttributesImmutable(), cp);
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.ConstantValue

    int signatureIndex = cp.addUtf8(signature);

    if (value != null) {
      checkType(type);
      int index = addConstant();
      addAttribute(new ConstantValue(cp.addUtf8("ConstantValue"), 2, index, cp));
    }

    addAnnotationsAsAttribute(cp);

    return new Field(modifiers, nameIndex, signatureIndex, getAttributesImmutable(), cp);
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.ConstantValue

    _out.println("\n    field = new FieldGen(" +
     printFlags(field.getAccessFlags()) +
     ", " + printType(field.getSignature()) + ", \"" +
     field.getName() + "\", _cp);");

    ConstantValue cv = field.getConstantValue();

    if(cv != null) {
      String value = cv.toString();
      _out.println("    field.setInitValue(" + value + ")");
    }

    _out.println("    _cg.addField(field.getField());");
  }
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.ConstantValue

    int         signature_index = cp.addUtf8(signature);

    if(value != null) {
      checkType(type);
      int index = addConstant();
      addAttribute(new ConstantValue(cp.addUtf8("ConstantValue"),
             2, index, cp.getConstantPool()));
    }
   
     addAnnotationsAsAttribute(cp);
View Full Code Here

Examples of org.voltdb.catalog.ConstantValue

                }
            }
            // CONSTANT VALUE
            // This is more rare
            else if (param instanceof ConstantValue) {
                ConstantValue const_param = (ConstantValue)param;
                VoltType vtype = VoltType.get(const_param.getType());
                Object const_value = VoltTypeUtil.getObjectFromString(vtype, const_param.getValue());
                int partition_id = this.hasher.hash(const_value);
                partitions.add(partition_id);
            }
            // BUSTED!
            else {
View Full Code Here

Examples of org.voltdb.catalog.ConstantValue

                        // element = CatalogUtil.getColumn(catalog_db,
                        // table_name, column_name);
                        break;
                    }
                    case VALUE_CONSTANT: {
                        element = new ConstantValue();
                        ((ConstantValue) element).setIs_null(false);
                        ((ConstantValue) element).setType(((ConstantValueExpression) exp).getValueType().getValue());
                        ((ConstantValue) element).setValue(((ConstantValueExpression) exp).getValue());
                        break;
                    }
View Full Code Here

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

Examples of org.zkoss.zuss.metainfo.ConstantValue

              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
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.