Examples of MethodInfo


Examples of fr.xlim.ssd.capmanipulator.library.MethodInfo

     *
     */
    public MethodInfo load(CapInputStream in, Short start, Short end) throws UnableToReadCapFileException {
        try {

            MethodInfo methodInfo = new MethodInfo();

            byte bitfield = in.readByte();
            byte flags = (byte) ((bitfield & 0xF0) >>> 4);
            methodInfo.setBytecodes(new ArrayList<Byte>());

            methodInfo.setMethodInfoOffset(start);

            if ((flags == MethodInfo.ACC_EXTENDED)) {

                // extended method header info
                methodInfo.setMethodHeader(new ExtendedMethodHeaderInfoRead().load(in, bitfield));

                for (int i = (start + MethodInfo.EXTENDED_METHOD_HEADER_INFO_SIZE);
                     i < end; i++) {
                    methodInfo.getBytecodes().add(in.readByte());
                }


                //we generate the opcodeMap
                methodInfo.setFirstBytecodeOffset((short) (methodInfo.getMethodInfoOffset() +
                        MethodInfo.EXTENDED_METHOD_HEADER_INFO_SIZE));
                makeOpcodeArray(methodInfo);


            } else {
                methodInfo.setMethodHeader(new MethodHeaderInfoRead().load(in, bitfield));

                if (flags == MethodInfo.ACC) {

                    // method
                    for (int i = (start + MethodInfo.METHOD_HEADER_INFO_SIZE);
                         i < end; i++) {
                        methodInfo.getBytecodes().add(in.readByte());
                    }

                    //we generate the opcodeMap
                    methodInfo.setFirstBytecodeOffset((short) (methodInfo.getMethodInfoOffset() + MethodInfo.METHOD_HEADER_INFO_SIZE));
                    makeOpcodeArray(methodInfo);

                } else if (flags != MethodInfo.ACC_ABSTRACT) {
                    // not abstract method
                    throw new UnknownFlagException("unknown flag value : " + flags);
View Full Code Here

Examples of gov.nasa.jpf.jvm.MethodInfo

    this.description = description;
  }
 
  public String getMemberName() {
    if(member instanceof MethodInfo) {
      MethodInfo mi = ((MethodInfo) member);
      if("<init>".equals(mi.getName())) // constructors
        return memberClass.getSimpleName() + " " + mi.getLongName();
                  //Arrays.toString(mi.getArgumentTypeNames()).replace('[','(').replace(']', ')');
      return mi.getReturnTypeName() + " " + mi.getLongName();
    }
    if(member instanceof FieldInfo) {
      FieldInfo fi = ((FieldInfo) member);
      return fi.getType() + " " + fi.getName();
    }
View Full Code Here

Examples of gov.nasa.jpf.vm.MethodInfo

    ConverterBase.init();
  }

  public void executeInstruction (VM vm, ThreadInfo currentThread, Instruction instructionToExecute) {
    if(instructionToExecute instanceof EXECUTENATIVE) {
      MethodInfo mi = ((EXECUTENATIVE)instructionToExecute).getMethodInfo();
      if(mi.isNative() && (mi instanceof HandledMethodInfo)) {
        // --- any method handled by nhandler is caught here ---
      }
    }
  }
View Full Code Here

Examples of jadx.core.dex.info.MethodInfo

      insn.simplifyCondition();
    }
  }

  private static InsnNode convertInvoke(MethodNode mth, InsnNode insn) {
    MethodInfo callMth = ((InvokeNode) insn).getCallMth();
    if (callMth.getDeclClass().getFullName().equals(Consts.CLASS_STRING_BUILDER)
        && callMth.getShortId().equals(Consts.MTH_TOSTRING_SIGNATURE)
        && insn.getArg(0).isInsnWrap()) {
      try {
        List<InsnNode> chain = flattenInsnChain(insn);
        if (chain.size() > 1 && chain.get(0).getType() == InsnType.CONSTRUCTOR) {
          ConstructorInsn constr = (ConstructorInsn) chain.get(0);
View Full Code Here

Examples of javassist.bytecode.MethodInfo

       
    }
   
    private void addMethodAnnotation(final CtMethod ctMethod, final Annotation annotation) {

        MethodInfo methodInfo = ctMethod.getMethodInfo();

        AnnotationsAttribute attribute = (AnnotationsAttribute) methodInfo
            .getAttribute(AnnotationsAttribute.visibleTag);

        if (attribute == null) {
            attribute = new AnnotationsAttribute(getConstPool(), AnnotationsAttribute.visibleTag);
        }

        final javassist.bytecode.annotation.Annotation copy = toJavassistAnnotation(annotation);

        attribute.addAnnotation(copy);

        methodInfo.addAttribute(attribute);

    }
View Full Code Here

Examples of javax.el.MethodInfo

        if (context == null)
        {
            throw new NullPointerException();
        }
        return new MethodInfo(elements[elements.length - 1], expectedType,
                signature);

    }
View Full Code Here

Examples of jode.bytecode.MethodInfo

                FieldInfo fi[] = ci.getFields();
                for(int i = 0; i < fi.length; i++) {
                    FieldInfo f = fi[i];
                    names.addObject(f.getName());
                }
                MethodInfo mi[] = ci.getMethods();
                for(int i = 0; i < mi.length; i++) {
                    MethodInfo f = mi[i];
                    names.addObject(f.getName());
                }
                names.addObject(name());
            }
            return names;
        }
View Full Code Here

Examples of joust.joustcache.data.MethodInfo

     */
    public static void registerMethodSideEffects(MethodSymbol sym, Effects effectSet) {
        final String methodHash = MethodInfo.getHashForMethod(sym);
        final String className = ((ClassSymbol) sym.owner).flatname.toString();

        MethodInfo m = new MethodInfo(methodHash, effectSet);
        log.debug("{} has effects {} in {}", methodHash, effectSet, className);

        ClassInfo cInfo = classInfo.get(className);
        if (cInfo == null) {
            cInfo = new ClassInfo();
View Full Code Here

Examples of net.sf.cglib.core.MethodInfo

        for (Iterator iterator = methods.iterator(); iterator
        .hasNext();) {
          Method method = (Method) iterator.next();

          if (Modifier.isAbstract(method.getModifiers())) {
            MethodInfo methodInfo = ReflectUtils.getMethodInfo(method);
            Signature signature = methodInfo.getSignature();
            Type returnType = signature.getReturnType();

            CodeEmitter e = ce.begin_method(method.getModifiers() & ~Modifier.ABSTRACT,
                signature, methodInfo.getExceptionTypes(),
                methodInfo.getAttribute());

            e.zero_or_null(returnType);
            e.return_value();

            Type[] argumentTypes = methodInfo.getSignature().getArgumentTypes();
            int size = 0;
            if (argumentTypes != null) {
              for (int i = 0; i < argumentTypes.length; i++) {
                size += argumentTypes[i].getSize();
              }
View Full Code Here

Examples of nginx.clojure.wave.SuspendMethodTracer.MethodInfo

    }
   
    vi.quite = true;
    try {
      ArrayList<VerifyMethodInfo> stack = vi.tracerStacks;
      MethodInfo cmi = stack.get(stack.size() -1);
      if (db.meetTraceTargetClassMethod(cmi.owner, cmi.method)) {
        db.info("#%d onYield %s.%s", vi.vid , cmi.owner, cmi.method);
      }
     
      for (int i = stack.size() - 1; i > -1;  i--) {
        MethodInfo mi = stack.get(i);
        if (mi.suspendType != -1 || ("nginx/clojure/Coroutine".equals(mi.owner) && "resume()V".equals(mi.method))) {
          break;
        }
       
        ClassEntry ce = db.getClasses().get(mi.owner);
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.