Package net.sourceforge.javautil.bytecode.api.type.method.invocation

Examples of net.sourceforge.javautil.bytecode.api.type.method.invocation.MethodInvocation


  @Override public IBytecodeResolvable getType(BytecodeContextMethod ctx) {
    return this;
  }

  @Override public MethodInvocation createInvocation(BytecodeContextMethod context, String name, IBytecodeReferenceable... parameters) {
    return new MethodInvocation(this, this.findMethod(context.getResolutionPool(), name, context.getTypes(parameters)), parameters);
  }
View Full Code Here


  public IBytecodeResolvable getDeclaringType() { return this.declaringType; }

  public TypeMemberAccess getAccess() { return TypeMemberAccess.getFor(field.getModifiers()); }

  public MethodInvocation createInvocation(BytecodeContextMethod context, String name, IBytecodeReferenceable... parameters) {
    return new MethodInvocation(this, getType(context).findMethod(context.getResolutionPool(), name, context.getTypes(parameters)), parameters);
  }
View Full Code Here

  public String getName() { return name; }

  public TypeMemberAccess getAccess() { return this.access; }

  public MethodInvocation createInvocation(BytecodeContextMethod context, String name, IBytecodeReferenceable... parameters) {
    return new MethodInvocation(this, getType(context).findMethod(context.getResolutionPool(), name, context.getTypes(parameters)), parameters);
  }
View Full Code Here

   * @param method The method to invoke
   * @param parameters The parameters to pass to the invocation
   * @return The return value
   */
  public MethodInvocation createInvocation (IBytecodeReferenceable instance, IBytecodeMethod method, IBytecodeReferenceable... parameters) {
    return new MethodInvocation(instance, method, parameters);
  }
View Full Code Here

   * @param type The type the constructor is for
   * @param parameters The parameters to pass to the constructor
   * @return The method invocation for the constructor
   */
  public MethodInvocation createConstructorInvocation (IBytecodeReferenceable instance, IBytecodeResolvable type, IBytecodeReferenceable... parameters) {
    return new MethodInvocation(instance, type.findConstructor(this.getResolutionPool(), getTypes(parameters)), parameters);
  }
View Full Code Here

  public TypeDescriptor getType() { return this.descriptor; }

  public IBytecodeResolvable getType(C ctx) { return ctx.getResolutionPool().resolve(descriptor.getClassName()); }

  public MethodInvocation createInvocation(C context, String name, IBytecodeReferenceable... parameters) {
    return new MethodInvocation(this, this.getType(context).findMethod(context.getResolutionPool(), name, context.getTypes(parameters)), parameters);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.bytecode.api.type.method.invocation.MethodInvocation

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.