Package net.sourceforge.javautil.bytecode.api

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor


 
  /**
   * @param referenceable The value to return
   */
  public void returnValue (IBytecodeReferenceable expression) {
    TypeDescriptor expectedReturnType = method.getDescriptor().getReturnType();
    if (expectedReturnType == null || expectedReturnType == TypeDescriptor.VOID) {
      if (expression != null) expression.load(this);
      this.returnVoid();
    } else {
      if (expression == null) this.returnNull();
View Full Code Here


           
            return ArgumentMatch.NONE;
          }
        } else if (parameterTypes[p].getType().isPrimitive()) {
         
          TypeDescriptor ptype = parameterTypes[p].getType();
          if (ptype == arguments[p]) { matched++; continue; }
         
          if (ptype.isPrimitive() && arguments[p].getClassName().equals(ptype.getBoxedType())) {
           
            matched++; continue;
           
          } else return ArgumentMatch.NONE;
         
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.bytecode.api.TypeDescriptor

Copyright © 2018 www.massapicom. 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.