KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > ast > IntLiteralMinValue


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.compiler.ast;
12
13 import org.eclipse.jdt.internal.compiler.impl.*;
14
15 public class IntLiteralMinValue extends IntLiteral {
16
17     final static char[] CharValue = new char[]{'-','2','1','4','7','4','8','3','6','4','8'};
18     final static Constant MIN_VALUE = IntConstant.fromValue(Integer.MIN_VALUE) ;
19
20 public IntLiteralMinValue() {
21     super(CharValue,0,0,Integer.MIN_VALUE);
22     constant = MIN_VALUE;
23 }
24 public void computeConstant(){
25     
26     /*precomputed at creation time*/ }
27 }
28
Popular Tags