Examples of Method


Examples of alt.jiapi.file.Method

        int maxLocals = signature.getParameters().length + 1;

        attrs.add(new CodeAttribute(cp, maxStack, (short)maxLocals));

        // Create field, and add it to ClassFile
        Method m = new Method(cp, modifiers, name, signature.getDescriptor(),
                              attrs);

        clazz.getMethods().add(m);

        return new JiapiMethod(m);
View Full Code Here

Examples of anvil.codec.Method

  public ByteCompiler location(Location location)
  {
    if (_debug && location != null) {
      Code code = getCode();
      Method method = code.getMethod();
      if (method.getClassRoom().getStatic() != method) {
        code.aload_first();
        code.iconst(location.getLine());
        code.invokevirtual(getPool().addMethodRef("anvil/script/StackFrameStack",
          "setLine", "(I)V"));
      }
View Full Code Here

Examples of ar.com.jmfsg.documentation.model.Method

                .fromObject(m
                    .getAnnotation(
                        ar.com.jmfsg.documentation.annotation.Documentation.class)
                    .data());

            Method method = objectMapper.readValue(o.toString(),
                Method.class);
            this.addModuleMethod(modulePrefix, method);
          }
        }
      }
View Full Code Here

Examples of at.bestsolution.efxclipse.formats.svg.svg.Method

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setMethod(Method newMethod) {
    Method oldMethod = method;
    method = newMethod == null ? METHOD_EDEFAULT : newMethod;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, SvgPackage.SVG_TEXT_PATH_ELEMENT__METHOD, oldMethod, method));
  }
View Full Code Here

Examples of base.drawable.Method

        Nentries = (int) ins.readShort();
        if ( Nentries > 0 ) {
            methods = new Method[ Nentries ];
            for ( idx = 0; idx < Nentries; idx++ )
                methods[ idx ]   = new Method( ins );
        }
        else
            methods   = null;
    }
View Full Code Here

Examples of br.usp.each.saeg.bytecode.analysis.domain.Method

       
        final int nargs = Type.getArgumentTypes(m.desc).length;
       
        final ValueRef[] args = pop(stack, opcode == Opcodes.INVOKESTATIC ? nargs : nargs + 1);
       
        final Method method = new Method(m.owner, m.name, m.desc);
        final Invoke invoke = new Invoke(method, args);
       
        if (Type.getReturnType(m.desc) == Type.VOID_TYPE) {
          frame = new DefUseFrame(null, invoke);
        } else {
View Full Code Here

Examples of ca.carleton.gcrc.couch.export.ExportUtils.Method

      }
      logger.debug("Export Filter: "+filter.name());
    }
   
    // Parse method
    Method method = null;
    {
      String methodStr = request.getParameter("method");
      if( null != methodStr ) {
        for(Method m : Method.values()){
          if( m.matches(methodStr) ){
            method = m;
          }
        }
      }
     
      if( null == method ) {
        Exception e = new Exception("Unknown method");
        reportError(response,HttpServletResponse.SC_INTERNAL_SERVER_ERROR,e);
        return;
      }
      logger.debug("Export Method: "+method.name());
    }
   
    // Parse identifier
    String identifier = null;
    List<String> identifiers = new Vector<String>();
    {
      String[] ids = request.getParameterValues("name");
      if( null != ids ) {
        for(String id : ids){
          identifiers.add(id);
        }
      }
     
      if( identifiers.size() > 0 ) {
        identifier = identifiers.get(0);
      }
     
      if( null == identifier ) {
        Exception e = new Exception("Unknown name");
        reportError(response,HttpServletResponse.SC_INTERNAL_SERVER_ERROR,e);
        return;
      }
      logger.debug("Export Name: "+identifier);
    }
   
    // Build doc retrieval based on method
    DocumentRetrieval docRetrieval = null;
    if( Method.LAYER == method ) {
      try {
        docRetrieval = DocumentRetrievalLayer.create(configuration.getCouchDb(), identifier);
      } catch (Exception e) {
        throw new ServletException("Problem retrieving documents from layer: "+identifier,e);
      }
     
    } else if( Method.SCHEMA == method ) {
      try {
        docRetrieval = DocumentRetrievalSchema.create(configuration.getCouchDb(), identifier);
      } catch (Exception e) {
        throw new ServletException("Problem retrieving documents from schema: "+identifier,e);
      }
     
    } else if( Method.DOC_ID == method ) {
      try {
        docRetrieval = DocumentRetrievalId.create(configuration.getCouchDb(), identifiers);
      } catch (Exception e) {
        throw new ServletException("Problem retrieving documents from doc ids: "+identifiers,e);
      }
     
    } else {
      throw new ServletException("Do not know how to handle method: "+method.name());
    }
   
    // Build document filter based on filter type
    DocumentFilter docFilter = null;
    {
View Full Code Here

Examples of clojure.asm.commons.Method

        gen.checkCast(CHAR_TYPE);
        gen.invokeVirtual(CHAR_TYPE, charValueMethod);
        }
      else
        {
        Method m = intValueMethod;
        gen.checkCast(NUMBER_TYPE);
        if(paramType == int.class)
          m = intValueMethod;
        else if(paramType == float.class)
          m = floatValueMethod;
View Full Code Here

Examples of cn.wensiqun.asmsupport.definition.method.Method

      }
    }
   
    me = new MethodEntity(name, owner, owner, arguments, argNames, returnClass, exces, access);

    method = new Method(me, context, methodBody, mtdCrtMode);
    if(method.getMethodEntity().getName().equals(ASConstant.INIT)){
      owner.addConstructor(method);
    }else{
      owner.addMethod(method);
    }
View Full Code Here

Examples of com.android.dx.cf.iface.Method

    // Methods
    MethodList methods= classFile.getMethods();
    for (int i= 0; i < methods.size(); i++)
    {
      Method method= methods.get(i);
      // CstMethodRef methodRef = new
      // CstMethodRef(method.getDefiningClass(), method.getNat());
      // We shouldn't need to go through the signature. If the class is
      // not used in the code block, we can ignore it.
      // processSignature(methodRef, dependencies);
      processCode(getCode(method, classFile), classDeps.getMethodDeps(method.getName().toHuman()));
    }
  }
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.