Example #1
0
  public byte getReturnType() {
    if (returnType < 0) {
      returnType = Types.getReturnType(signature);
    }

    return returnType;
  }
Example #2
0
  public int getNumberOfArguments() {
    if (nArgs < 0) {
      nArgs = Types.getNumberOfArguments(signature);
    }

    return nArgs;
  }
Example #3
0
  public byte[] getArgumentTypes() {
    if (argTypes == null) {
      argTypes = Types.getArgumentTypes(signature);
      nArgs = argTypes.length;
    }

    return argTypes;
  }
Example #4
0
  public int getArgumentsSize() {
    // it's actually faster to do this on demand just for the invoked methods
    // than to pull this out of each BCEL Method during init

    if (argSize < 0) {
      argSize = Types.getArgumentsSize(signature);

      if (!isStatic()) {
        argSize++;
      }
    }

    return argSize;
  }
Example #5
0
 public int getNumberOfCallerStackSlots() {
   return Types.getNumberOfStackSlots(signature, isStatic()); // includes return type
 }
Example #6
0
 public String getJNIName() {
   return Types.getJNIMangledMethodName(null, name, signature);
 }
Example #7
0
 public String getReturnTypeName() {
   return Types.getReturnTypeName(signature);
 }
Example #8
0
 public String[] getArgumentTypeNames() {
   return Types.getArgumentTypeNames(signature);
 }