blob: 41d8ee4d37a158f0f0552440642902a2508a65f6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2016 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.ast.references;
import org.eclipse.dltk.ast.ASTVisitor;
import org.eclipse.dltk.ast.expressions.Expression;
public abstract class Reference extends Expression {
protected Reference() {
super();
}
protected Reference(int sourceStart, int sourceEnd) {
super(sourceStart, sourceEnd);
}
@Override
public int getKind() {
return E_IDENTIFIER;
}
@Override
public void traverse(ASTVisitor pVisitor) throws Exception {
if (pVisitor.visit(this)) {
pVisitor.endvisit(this);
}
}
public abstract String getStringRepresentation();
}