return UNKNOWN;
}
private String getTypeName(Definition def)
{
Type t = null;
if (def instanceof InstanceVariableDefinition)
{
t = ((InstanceVariableDefinition) def).type;
} else if (def instanceof ValueDefinition)
{
t = ((ValueDefinition) def).type;
} else if (def instanceof LocalDefinition)
{
t = ((LocalDefinition) def).type;
}
String typeName = "";
if (t instanceof OptionalType)
{
OptionalType opType = (OptionalType) t;
typeName = opType.type.getName();
}
if (t instanceof ClassType)
{
typeName = t.getName();
} else if (t instanceof OptionalType
&& ((OptionalType) t).type instanceof ClassType)
{
typeName = t.getName();
} else
{
typeName = def.getName();
}