getDescription von FormalParameter angepasst

This commit is contained in:
JanUlrich 2014-04-26 20:10:18 +02:00
parent 9aea618525
commit 2511d95a9f

View File

@ -26,6 +26,7 @@ import org.apache.log4j.Logger;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import typinferenz.JavaCodeResult;
import typinferenz.ResultSet;
@ -233,6 +234,8 @@ public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementL
@Override
public void setOffset(int offset) {
//Das Offset steht in declId
@ -247,7 +250,6 @@ public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementL
}
@Override
public void parserPostProcessing(SyntaxTreeNode parent) {
super.parserPostProcessing(parent);
@ -285,6 +287,16 @@ public class FormalParameter extends SyntaxTreeNode implements ITypeReplacementL
}
return ret;
}
@Override
public String getDescription() {
String ret = "";
if(this.getType() != null && !(this.getType() instanceof TypePlaceholder)){
ret += this.getType().getName() + " ";
}
return ret+this.getIdentifier();
}
}
// ino.end