diff options
Diffstat (limited to 'plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/type/baseimpl/FeatureImpl.java')
-rw-r--r-- | plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/type/baseimpl/FeatureImpl.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/type/baseimpl/FeatureImpl.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/type/baseimpl/FeatureImpl.java new file mode 100644 index 00000000..d589bc4c --- /dev/null +++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/type/baseimpl/FeatureImpl.java @@ -0,0 +1,49 @@ +/* + * <copyright> + * + * Copyright (c) 2005-2006 Sven Efftinge (http://www.efftinge.de) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Sven Efftinge (http://www.efftinge.de) - Initial API and implementation + * + * </copyright> + */ +package org.eclipse.internal.xtend.type.baseimpl; + +import org.eclipse.xtend.typesystem.Callable; +import org.eclipse.xtend.typesystem.Type; + +public abstract class FeatureImpl implements Callable { + + private String name; + + private Type returnType; + + public FeatureImpl(final String name, final Type returnType) { + this.name = name; + this.returnType = returnType; + } + + public String getName() { + return name; + } + + public Type getReturnType() { + return returnType; + } + + @Override + public String toString() { + return returnType.toString() + " " + name; + } + + @Override + public abstract boolean equals(Object obj); + + @Override + public abstract int hashCode(); +} |