Examples of rawValue()


Examples of lombok.ast.AnnotationElement.rawValue()

        if (elem instanceof JCAssign) {
          JCExpression rawName = ((JCAssign) elem).getVariable();
          if (rawName instanceof JCIdent) e.astName(setPos(rawName, new Identifier().astValue(((JCIdent)rawName).getName().toString())));
          elem = ((JCAssign) elem).getExpression();
        }
        e.rawValue(toTree(elem));
        a.astElements().addToEnd(e);
      }
      set(node, a);
    }
  }
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

  }
 
  @Test
  public void testToRaw() {
    IntegralLiteral n = new IntegralLiteral().astLongValue(32);
    assertEquals("32L", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
    assertEquals("0x20L", n.rawValue());
    assertNull(n.getErrorReasonForValue());
    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("040L", n.rawValue());
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

  @Test
  public void testToRaw() {
    IntegralLiteral n = new IntegralLiteral().astLongValue(32);
    assertEquals("32L", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
    assertEquals("0x20L", n.rawValue());
    assertNull(n.getErrorReasonForValue());
    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("040L", n.rawValue());
   
    n.astIntValue(0);
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

    assertEquals("32L", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
    assertEquals("0x20L", n.rawValue());
    assertNull(n.getErrorReasonForValue());
    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("040L", n.rawValue());
   
    n.astIntValue(0);
    n.astLiteralType(LiteralType.DECIMAL);
    assertEquals("0", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("040L", n.rawValue());
   
    n.astIntValue(0);
    n.astLiteralType(LiteralType.DECIMAL);
    assertEquals("0", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
    assertEquals("0x0", n.rawValue());
    assertNull(n.getErrorReasonForValue());
    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("00", n.rawValue());
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

   
    n.astIntValue(0);
    n.astLiteralType(LiteralType.DECIMAL);
    assertEquals("0", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
    assertEquals("0x0", n.rawValue());
    assertNull(n.getErrorReasonForValue());
    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("00", n.rawValue());
   
    n.astLiteralType(LiteralType.DECIMAL);
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

    assertEquals("0", n.rawValue());
    n.astLiteralType(LiteralType.HEXADECIMAL);
    assertEquals("0x0", n.rawValue());
    assertNull(n.getErrorReasonForValue());
    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("00", n.rawValue());
   
    n.astLiteralType(LiteralType.DECIMAL);
    n.astIntValue(Integer.MIN_VALUE);
    assertEquals("2147483648", n.rawValue());
    n.astLongValue(Long.MIN_VALUE);
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

    n.astLiteralType(LiteralType.OCTAL);
    assertEquals("00", n.rawValue());
   
    n.astLiteralType(LiteralType.DECIMAL);
    n.astIntValue(Integer.MIN_VALUE);
    assertEquals("2147483648", n.rawValue());
    n.astLongValue(Long.MIN_VALUE);
    assertEquals("9223372036854775808L", n.rawValue());
  }
 
  @Test
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

   
    n.astLiteralType(LiteralType.DECIMAL);
    n.astIntValue(Integer.MIN_VALUE);
    assertEquals("2147483648", n.rawValue());
    n.astLongValue(Long.MIN_VALUE);
    assertEquals("9223372036854775808L", n.rawValue());
  }
 
  @Test
  public void testFromRaw() {
    IntegralLiteral n = new IntegralLiteral();
View Full Code Here

Examples of lombok.ast.IntegralLiteral.rawValue()

 
  @Test
  public void testFromRaw() {
    IntegralLiteral n = new IntegralLiteral();
   
    n.rawValue("0");
    assertEquals(LiteralType.DECIMAL, n.astLiteralType());
    assertEquals(0, n.astIntValue());
    assertFalse(n.astMarkedAsLong());
    n.rawValue("00");
    assertEquals(LiteralType.OCTAL, n.astLiteralType());
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.