Examples of EMethod


Examples of net.zero.smarttrace.core.data.EMethod

    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());
View Full Code Here

Examples of net.zero.smarttrace.core.data.EMethod

    return ret;
    }
 
  public EMethod createQueryMethod(Method method)
    {
    EMethod ret=dataQuerier.getMethod(method.name(), method.signature(), method.declaringType().name());
    if(ret==null)
      ret=createMethod(method);   
    return ret;
    }
View Full Code Here

Examples of net.zero.smarttrace.data.EMethod

    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) {
        // TODO Auto-generated catch block
        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());
View Full Code Here

Examples of net.zero.smarttrace.data.EMethod

    return ret;
    }
 
  public EMethod createQueryMethod(Method method)
    {
    EMethod ret=dataQuerier.getMethod(method.name(), method.signature(), method.declaringType().name());
    if(ret==null)
      ret=createMethod(method);   
    return ret;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.