Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99FunctionType.java')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99FunctionType.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99FunctionType.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99FunctionType.java
deleted file mode 100644
index dca26f8098a..00000000000
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99FunctionType.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2008 IBM Corporation 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.cdt.internal.core.dom.lrparser.c99.bindings;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.cdt.core.dom.ast.IFunctionType;
-import org.eclipse.cdt.core.dom.ast.IType;
-
-public class C99FunctionType implements IFunctionType {
-
- private IType returnType;
- private List<IType> parameterTypes = new ArrayList<IType>();
-
- public IType[] getParameterTypes() {
- return parameterTypes.toArray(new IType[parameterTypes.size()]);
- }
-
- public void addParameterType(IType parameterType) {
- parameterTypes.add(parameterType);
- }
-
- public IType getReturnType() {
- return returnType;
- }
-
- public void setReturnType(IType returnType) {
- this.returnType = returnType;
- }
-
- public boolean isSameType(@SuppressWarnings("unused") IType type) {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public C99FunctionType clone() {
- try {
- C99FunctionType clone = (C99FunctionType) super.clone();
- clone.setReturnType((IType)returnType.clone());
- clone.parameterTypes = new ArrayList<IType>();
- for(IType parameterType : parameterTypes) {
- clone.addParameterType((IType)parameterType.clone());
- }
- return clone;
- } catch (CloneNotSupportedException e) {
- assert false;
- return null;
- }
-
- }
-}

Back to the top