Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-12-09 13:51:47 -0500
committerSergey Prigogin2011-12-09 14:04:08 -0500
commitb62f1b0e6a5ebf0913f0c375b346ec86efd595f0 (patch)
tree5abc3ccdb4fe038e01d047d1cda2ba1e9bade75b /lrparser
parentc0c636bc3cdcf4651d5b9edfd2a23f8d6c5aa26c (diff)
downloadorg.eclipse.cdt-b62f1b0e6a5ebf0913f0c375b346ec86efd595f0.tar.gz
org.eclipse.cdt-b62f1b0e6a5ebf0913f0c375b346ec86efd595f0.tar.xz
org.eclipse.cdt-b62f1b0e6a5ebf0913f0c375b346ec86efd595f0.zip
toString methods and @Overide annotations.
Diffstat (limited to 'lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java
index 985902b3b5..1ca285b8ad 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java
@@ -11,6 +11,7 @@
package org.eclipse.cdt.internal.core.dom.lrparser.c99.bindings;
import org.eclipse.cdt.core.dom.ILinkage;
+import org.eclipse.cdt.core.dom.ast.ASTTypeUtil;
import org.eclipse.cdt.core.dom.ast.IASTNode;
import org.eclipse.cdt.core.dom.ast.IBinding;
import org.eclipse.cdt.core.dom.ast.IScope;
@@ -23,7 +24,6 @@ import org.eclipse.core.runtime.PlatformObject;
@SuppressWarnings("restriction")
public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef, ITypeContainer, ITypeable {
-
private IType type;
private String name;
@@ -42,7 +42,6 @@ public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef,
this.name = name;
}
-
public IType getType() {
return type;
}
@@ -63,7 +62,6 @@ public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef,
return name.toCharArray();
}
-
public boolean isSameType(IType t) {
if(t == this)
return true;
@@ -71,7 +69,6 @@ public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef,
if(t instanceof ITypedef)
return type.isSameType(((ITypedef)t).getType());
return type.isSameType(t);
-
}
@Override
@@ -104,4 +101,9 @@ public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef,
}
return null;
}
+
+ @Override
+ public String toString() {
+ return getName() + " -> " + ASTTypeUtil.getType(this, true); //$NON-NLS-1$
+ }
}

Back to the top