return ret;
}
public EMethod createMethod(Method method)
{
EMethod ret=new EMethod();
ret.setDeclaringType(createQueryReferenceType(method.declaringType()));
ret.setName(method.name());
ret.setSignature(method.signature());
if(method.name().equals("getTokenID"))
{
System.out.println("metodo: " + method + ", " + method.signature());
try
{
System.out.println(method.arguments());
System.out.println(method.argumentTypeNames());
}
catch (AbsentInformationException e)
{
e.printStackTrace();
}
}
//cargar parametros
ret.setParameters(new HashSet<ELocalVariable>());
try {
ELocalVariable param=null;
for(LocalVariable arg : method.arguments())
{
param = new ELocalVariable();
param.setDeclaringMethod(ret);
param.setName(arg.name());
param.setSignature(arg.signature());
ret.getParameters().add(param);
}
}
catch(AbsentInformationException e)
{
System.out.println(e.getClass().getName() + ":" + method.declaringType().name() + "." + method.name() + "." + method.signature());