Examples of ScalarType


Examples of com.google.eclipse.protobuf.protobuf.ScalarType

  // message Person {
  //   optional int32 id = 1;
  // }
  @Test public void should_return_scalar_if_field_type_is_scalar() {
    MessageField field = xtext.find("id", MessageField.class);
    ScalarType type = fields.scalarTypeOf(field);
    assertThat(type.getName(), equalTo("int32"));
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.ScalarType

   * Returns the name of the type of the given field.
   * @param field the given field.
   * @return the name of the type of the given field.
   */
  public String typeNameOf(MessageField field) {
    ScalarType scalarType = scalarTypeOf(field);
    if (scalarType != null) {
      return scalarType.getName();
    }
    ComplexType complexType = typeOf(field);
    if (complexType != null) {
      return complexType.getName();
    }
View Full Code Here

Examples of mondrian.olap.type.ScalarType

        final Calc orderCalc =
            call.getArgCount() > 3
            ? compiler.compileScalar(call.getArg(3), true)
            : new ValueCalc(
                new DummyExp(
                    new ScalarType()));
        return new AbstractListCalc(
            call,
            new Calc[] {listCalc, integerCalc, orderCalc})
        {
            public List evaluateList(Evaluator evaluator) {
View Full Code Here

Examples of mondrian.olap.type.ScalarType

         *
         * @param scenario Scenario whose writeback values should be substituted
         * for the values stored in the database.
         */
        public ScenarioCalc(ScenarioImpl scenario) {
            super(new DummyExp(new ScalarType()));
            this.scenario = scenario;
        }
View Full Code Here

Examples of mondrian.olap.type.ScalarType

        final Calc orderCalc =
            call.getArgCount() > 3
            ? compiler.compileScalar(call.getArg(3), true)
            : new ValueCalc(
                new DummyExp(
                    new ScalarType()));
        return new AbstractListCalc(
            call,
            new Calc[] {listCalc, integerCalc, orderCalc})
        {
            public TupleList evaluateList(Evaluator evaluator) {
View Full Code Here

Examples of mondrian.olap.type.ScalarType

                            tupleList,
                            false);

                    final Calc valueCalc =
                        new ValueCalc(
                            new DummyExp(new ScalarType()));
                    final TupleList tupleList1 = tupleList;


                    final Calc calc =
                        new GenericCalc(
View Full Code Here

Examples of mondrian.olap.type.ScalarType

         *
         * @param scenario Scenario whose writeback values should be substituted
         * for the values stored in the database.
         */
        public ScenarioCalc(ScenarioImpl scenario) {
            super(new DummyExp(new ScalarType()));
            this.scenario = scenario;
        }
View Full Code Here

Examples of org.osgi.service.indexer.impl.types.ScalarType

   
    return result;
  }

  private static Object parseScalarValue(String value, String typeStr) throws IllegalArgumentException {
    ScalarType type = Enum.valueOf(ScalarType.class, typeStr);
    switch (type) {
    case String:
      return value;
    case Long:
      return Long.valueOf(value);
View Full Code Here

Examples of org.osgi.service.indexer.impl.types.ScalarType

   
    return result;
  }

  private static Object parseScalarValue(String value, String typeStr) throws IllegalArgumentException {
    ScalarType type = Enum.valueOf(ScalarType.class, typeStr);
    switch (type) {
    case String:
      return value;
    case Long:
      return Long.valueOf(value);
View Full Code Here

Examples of org.osgi.service.indexer.impl.types.ScalarType

   
    return result;
  }

  private static Object parseScalarValue(String value, String typeStr) throws IllegalArgumentException {
    ScalarType type = Enum.valueOf(ScalarType.class, typeStr);
    switch (type) {
    case String:
      return value;
    case Long:
      return Long.valueOf(value);
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.