1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

toString method.

This commit is contained in:
Sergey Prigogin 2008-04-14 03:14:41 +00:00
parent 0c6ec32e51
commit cba049ddbe

View file

@ -95,6 +95,7 @@ public class ProblemBinding extends PlatformObject implements IProblemBinding, I
return msg; return msg;
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBinding#getName() * @see org.eclipse.cdt.core.dom.ast.IBinding#getName()
*/ */
@ -125,11 +126,10 @@ public class ProblemBinding extends PlatformObject implements IProblemBinding, I
@Override @Override
public Object clone() { public Object clone() {
//don't clone problems // Don't clone problems
return this; return this;
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IScope#getParent() * @see org.eclipse.cdt.core.dom.ast.IScope#getParent()
*/ */
@ -172,7 +172,8 @@ public class ProblemBinding extends PlatformObject implements IProblemBinding, I
throw new DOMException(this); throw new DOMException(this);
} }
public final IBinding[] getBindings(IASTName name, boolean resolve, boolean prefix) throws DOMException { public final IBinding[] getBindings(IASTName name, boolean resolve, boolean prefix)
throws DOMException {
throw new DOMException(this); throw new DOMException(this);
} }
@ -235,4 +236,9 @@ public class ProblemBinding extends PlatformObject implements IProblemBinding, I
public ILinkage getLinkage() { public ILinkage getLinkage() {
return Linkage.NO_LINKAGE; return Linkage.NO_LINKAGE;
} }
@Override
public String toString() {
return getMessage();
}
} }