| /********************************************************************* |
| * Copyright (c) 2008 The University of York. |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.epsilon.eol.dom; |
| |
| import org.eclipse.epsilon.common.module.AbstractModuleElement; |
| import org.eclipse.epsilon.eol.exceptions.EolRuntimeException; |
| import org.eclipse.epsilon.eol.execute.context.IEolContext; |
| |
| public abstract class Annotation extends AbstractModuleElement { |
| |
| protected String name; |
| |
| public String getName() { |
| return name; |
| } |
| |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| @Override |
| public String toString() { |
| return name != null ? name : super.toString(); |
| } |
| |
| public abstract boolean hasValue(); |
| |
| public abstract Object getValue(IEolContext context) throws EolRuntimeException; |
| |
| public abstract void accept(IEolVisitor visitor); |
| |
| } |