/*******************************************************************************
* Copyright (c) 2006-2012
* Software Technology Group, Dresden University of Technology
* DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Software Technology Group - TU Dresden, Germany;
* DevBoost GmbH - Berlin, Germany
* - initial API and implementation
******************************************************************************/
public class Literals {
public void method () {
double a = -0x80000000;
int i1 = 3;
int i2 = 0x1;
long i3 = 010l;
long i4 = 007L;
long i5 = 0x1ffffffffffff00L;
long i6 = 0xFFFFFFFFFFFFFFFFl;
long i7 = 0xBF;
double x = 0xffffffffe0000000L;
double y = 0x8000000000000000L;
double z = 0xfffe00L;
double f1 = 1.5;
char c = 'a';
String s = "abc";
boolean falze = false;
boolean truh = true;
Literals nuhl = null;
float f2 = 1.5f;
// some assignments to avoid warnings
this.i1 = i1;
this.i2 = i2;
this.i3 = i3;
this.i4 = i4;
this.f1 = f1;
this.c = c;
this.s = s;
this.falze = falze;
this.truh = truh;
this.nuhl = nuhl;
this.f2 = f2;
}
public int i1 = 3;
public int i2 = 0x1;
public long i3 = 010l;
public long i4 = 000L;
public long i5 = 0x1ffffffffffff00L;
public long i6 = 0xFFFFFFFFFFFFFFFFl;
public long i7 = 0xFF;
public long i8 = 10L;
public double f1 = 1.5;
public char c = 'a';
public String s = "abc";
public boolean falze = false;
public boolean truh = true;
public Literals nuhl = null;
public float f2 = 1.5f;
public long maxLong = 0xffffffffffffffffL;
public boolean b = -0xffffffffffffffffL == ~0xffffffffffffffffL+1;
public long i9 = 0X00FF00FF;
public long l10 = 01233211234435456722112L;
public static final double DOUBLE_MAX_VALUE = 0x1.fffffffffffffP+1023; // 1.7976931348623157e+308
public static final double DOUBLE_MIN_NORMAL = 0x1.0p-1022; // 2.2250738585072014E-308
public static final double DOUBLE_MIN_VALUE = 0x0.0000000000001P-1022; // 4.9e-324
public static final float FLOAT_MAX_VALUE = 0x1.fffffeP+127f; // 3.4028235e+38f
public static final float FLOAT_MIN_NORMAL = 0x1.0p-126f; // 1.17549435E-38f
public static final float FLOAT_MIN_VALUE = 0x0.000002P-126f; // 1.4e-45f
public static final float FLOAT_VALUE = 0x.fffffeP+127f;
}