Examples of charValue()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant.charValue()

      if (constant != null && constant != Constant.NotAConstant) {
        switch (constant.typeID()) {
          case TypeIds.T_int : return new Integer(constant.intValue());
          case TypeIds.T_byte : return new Byte(constant.byteValue());
          case TypeIds.T_short : return new Short(constant.shortValue());
          case TypeIds.T_char : return new Character(constant.charValue());
          case TypeIds.T_float : return new Float(constant.floatValue());
          case TypeIds.T_double : return new Double(constant.doubleValue());
          case TypeIds.T_boolean : return constant.booleanValue() ? Boolean.TRUE : Boolean.FALSE;
          case TypeIds.T_long : return new Long(constant.longValue());
          case TypeIds.T_JavaLangString : return constant.stringValue();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant.charValue()

      case TypeIds.T_boolean:
        return Boolean.valueOf(c.booleanValue());
      case TypeIds.T_byte:
        return new Byte(c.byteValue());
      case TypeIds.T_char:
        return new Character(c.charValue());
      case TypeIds.T_double:
        return new Double(c.doubleValue());
      case TypeIds.T_float:
        return new Float(c.floatValue());
      case TypeIds.T_int:
View Full Code Here

Examples of org.eclipse.jdt.core.dom.CharacterLiteral.charValue()

//        return "Cast expression";
//      case ASTNode.CATCH_CLAUSE:
//        return "Catch clause";
      case ASTNode.CHARACTER_LITERAL:
        CharacterLiteral characterLiteral = (CharacterLiteral) node;
        return characterLiteral.charValue();
//      case ASTNode.CLASS_INSTANCE_CREATION:
//        return "Class instance creation";
//      case ASTNode.COMPILATION_UNIT:
//        return "Compilation unit";
//      case ASTNode.CONDITIONAL_EXPRESSION:
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.Constant.charValue()

      case TypeIds.T_byte :
        return currentConstant.byteValue() != otherConstant.byteValue();
      case TypeIds.T_short :
        return currentConstant.shortValue() != otherConstant.shortValue();
      case TypeIds.T_char :
        return currentConstant.charValue() != otherConstant.charValue();
      case TypeIds.T_long :
        return currentConstant.longValue() != otherConstant.longValue();
      case TypeIds.T_float :
        return currentConstant.floatValue() != otherConstant.floatValue();
      case TypeIds.T_double :
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.Constant.charValue()

      if (constant != null && constant != Constant.NotAConstant) {
        switch (constant.typeID()) {
          case TypeIds.T_int : return new Integer(constant.intValue());
          case TypeIds.T_byte : return new Byte(constant.byteValue());
          case TypeIds.T_short : return new Short(constant.shortValue());
          case TypeIds.T_char : return new Character(constant.charValue());
          case TypeIds.T_float : return new Float(constant.floatValue());
          case TypeIds.T_double : return new Double(constant.doubleValue());
          case TypeIds.T_boolean : return constant.booleanValue() ? Boolean.TRUE : Boolean.FALSE;
          case TypeIds.T_long : return new Long(constant.longValue());
          case TypeIds.T_JavaLangString : return constant.stringValue();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.Constant.charValue()

      case TypeIds.T_boolean:
        return Boolean.valueOf(c.booleanValue());
      case TypeIds.T_byte:
        return new Byte(c.byteValue());
      case TypeIds.T_char:
        return new Character(c.charValue());
      case TypeIds.T_double:
        return new Double(c.doubleValue());
      case TypeIds.T_float:
        return new Float(c.floatValue());
      case TypeIds.T_int:
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    CosDpValueUnion in_unsigned_value = new CosDpValueUnion();
    in_unsigned_value.unsignedValue(0);
    CosDpValueUnion in_double_value = new CosDpValueUnion();
    in_double_value.dblValue(0.0);
    CosDpValueUnion in_string_value = new CosDpValueUnion();
    in_string_value.charValue("");

    // BOOLEAN data type
    // copy bool to bool (new value)
    outValue.boolValue(false);
    in_bool_value.boolValue(true);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_double_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(true, outValue.boolValue());
    // copy string to bool (value = "")
    outValue.boolValue(false);
    in_string_value.charValue("");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(false, outValue.boolValue());
    // copy string to bool (value = "test")
    outValue.boolValue(false);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(false, outValue.boolValue());
    // copy string to bool (value = "test")
    outValue.boolValue(false);
    in_string_value.charValue("test");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(true, outValue.boolValue());
    // copy string to bool (value = null)
    outValue.boolValue(false);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.charValue()

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(true, outValue.boolValue());
    // copy string to bool (value = null)
    outValue.boolValue(false);
    in_string_value.charValue(null);
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(false, outValue.boolValue());

    // NUMBER data type
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.