X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Literal.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Literal.java index 2e1e638..72571ba 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Literal.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Literal.java @@ -1,38 +1,19 @@ -/******************************************************************************* - * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * IBM Corporation - initial API and implementation - ******************************************************************************/ package net.sourceforge.phpdt.internal.compiler.ast; -import net.sourceforge.phpdt.internal.compiler.impl.*; -import net.sourceforge.phpdt.internal.compiler.lookup.*; - +/** + * Here is the Superclass of the Literal expressions. + * @author Matthieu Casanova + */ public abstract class Literal extends Expression { - -public Literal(int s,int e) { - sourceStart = s ; - sourceEnd= e; -} -public abstract void computeConstant() ; - //ON ERROR constant STAYS NULL -public abstract TypeBinding literalType(BlockScope scope); -public TypeBinding resolveType(BlockScope scope) { - // compute the real value, which must range its type's range + /** + * Create a Literal. + * @param sourceStart starting offset + * @param sourceEnd ending offset + */ + public Literal(int sourceStart, int sourceEnd) { + super(sourceStart, sourceEnd); + } - computeConstant(); - if (constant == null) { - scope.problemReporter().constantOutOfRange(this); - constant = Constant.NotAConstant; - return null; - } - return literalType(scope); -} -public abstract char[] source() ; + public abstract char[] source(); }