X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fast%2FLiteral.java;fp=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fast%2FLiteral.java;h=0000000000000000000000000000000000000000;hb=6f0cd02d46e011bd5599e1b7fefc6159cb811135;hp=32aa623c5c290dad812991572de57be9d2c23783;hpb=622d0e5a4b1b35b6918a516a79a0cc22272a919e;p=org.ibex.tool.git diff --git a/src/org/eclipse/jdt/internal/compiler/ast/Literal.java b/src/org/eclipse/jdt/internal/compiler/ast/Literal.java deleted file mode 100644 index 32aa623..0000000 --- a/src/org/eclipse/jdt/internal/compiler/ast/Literal.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jdt.internal.compiler.ast; - -import org.eclipse.jdt.internal.compiler.flow.FlowContext; -import org.eclipse.jdt.internal.compiler.flow.FlowInfo; -import org.eclipse.jdt.internal.compiler.impl.*; -import org.eclipse.jdt.internal.compiler.lookup.*; - -public abstract class Literal extends Expression { - - public Literal(int s, int e) { - - sourceStart = s; - sourceEnd = e; - } - - public FlowInfo analyseCode( - BlockScope currentScope, - FlowContext flowContext, - FlowInfo flowInfo) { - - return flowInfo; - } - - public abstract void computeConstant(); - - public abstract TypeBinding literalType(BlockScope scope); - - public StringBuffer printExpression(int indent, StringBuffer output){ - - return output.append(source()); - } - - public TypeBinding resolveType(BlockScope scope) { - // compute the real value, which must range its type's range - this.resolvedType = literalType(scope); - - // in case of error, constant did remain null - computeConstant(); - if (constant == null) { - scope.problemReporter().constantOutOfRange(this, this.resolvedType); - constant = Constant.NotAConstant; - } - return this.resolvedType; - } - - public abstract char[] source(); -}