Codota Logo
MethodInfo.getArgumentOffset
Code IndexAdd Codota to your IDE (free)

How to use
getArgumentOffset
method
in
jodd.proxetta.MethodInfo

Best Java code snippets using jodd.proxetta.MethodInfo.getArgumentOffset (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: oblac/jodd

public static void storeMethodArgumentFromObject(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int type = methodInfo.getArgument(index).getOpcode();
  int offset = methodInfo.getArgumentOffset(index);
  storeValue(mv, offset, type);
}
origin: oblac/jodd

/**
 * Stores one argument. Index is 1-based. No conversion occurs.
 */
public static void storeMethodArgument(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int offset = methodInfo.getArgumentOffset(index);
  int type = methodInfo.getArgument(index).getOpcode();
  switch (type) {
    case 'V':
      break;
    case 'B':
    case 'C':
    case 'S':
    case 'I':
    case 'Z':
      mv.visitVarInsn(ISTORE, offset); break;
    case 'J':
      mv.visitVarInsn(LSTORE, offset); break;
    case 'F':
      mv.visitVarInsn(FSTORE, offset); break;
    case 'D':
      mv.visitVarInsn(DSTORE, offset); break;
    default:
      mv.visitVarInsn(ASTORE, offset);
  }
}
origin: oblac/jodd

/**
 * Loads one argument. Index is 1-based. No conversion occurs.
 */
public static void loadMethodArgument(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int offset = methodInfo.getArgumentOffset(index);
  int type = methodInfo.getArgument(index).getOpcode();
  switch (type) {
    case 'V':
      break;
    case 'B':
    case 'C':
    case 'S':
    case 'I':
    case 'Z':
      mv.visitVarInsn(ILOAD, offset);
      break;
    case 'J':
      mv.visitVarInsn(LLOAD, offset);
      break;
    case 'F':
      mv.visitVarInsn(FLOAD, offset);
      break;
    case 'D':
      mv.visitVarInsn(DLOAD, offset);
      break;
    default:
      mv.visitVarInsn(ALOAD, offset);
  }
}
origin: oblac/jodd

public static void loadMethodArgumentAsObject(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int offset = methodInfo.getArgumentOffset(index);
  int type = methodInfo.getArgument(index).getOpcode();
  switch (type) {
origin: org.jodd/jodd-proxetta

public static void storeMethodArgumentFromObject(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int type = methodInfo.getArgument(index).getOpcode();
  int offset = methodInfo.getArgumentOffset(index);
  storeValue(mv, offset, type);
}
origin: org.jodd/jodd-proxetta

/**
 * Stores one argument. Index is 1-based. No conversion occurs.
 */
public static void storeMethodArgument(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int offset = methodInfo.getArgumentOffset(index);
  int type = methodInfo.getArgument(index).getOpcode();
  switch (type) {
    case 'V':
      break;
    case 'B':
    case 'C':
    case 'S':
    case 'I':
    case 'Z':
      mv.visitVarInsn(ISTORE, offset); break;
    case 'J':
      mv.visitVarInsn(LSTORE, offset); break;
    case 'F':
      mv.visitVarInsn(FSTORE, offset); break;
    case 'D':
      mv.visitVarInsn(DSTORE, offset); break;
    default:
      mv.visitVarInsn(ASTORE, offset);
  }
}
origin: org.jodd/jodd-proxetta

/**
 * Loads one argument. Index is 1-based. No conversion occurs.
 */
public static void loadMethodArgument(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int offset = methodInfo.getArgumentOffset(index);
  int type = methodInfo.getArgument(index).getOpcode();
  switch (type) {
    case 'V':
      break;
    case 'B':
    case 'C':
    case 'S':
    case 'I':
    case 'Z':
      mv.visitVarInsn(ILOAD, offset);
      break;
    case 'J':
      mv.visitVarInsn(LLOAD, offset);
      break;
    case 'F':
      mv.visitVarInsn(FLOAD, offset);
      break;
    case 'D':
      mv.visitVarInsn(DLOAD, offset);
      break;
    default:
      mv.visitVarInsn(ALOAD, offset);
  }
}
origin: org.jodd/jodd-proxetta

public static void loadMethodArgumentAsObject(final MethodVisitor mv, final MethodInfo methodInfo, final int index) {
  int offset = methodInfo.getArgumentOffset(index);
  int type = methodInfo.getArgument(index).getOpcode();
  switch (type) {
jodd.proxettaMethodInfogetArgumentOffset

Javadoc

Returns bytecode offset of an argument in local variables.

Popular methods of MethodInfo

  • getArgumentsCount
    Returns number of method arguments.
  • getMethodName
    Returns method name.
  • getReturnType
    Returns return TypeInfo.
  • getArgument
    Returns methods argument (1-indexed).
  • isPublicMethod
    Returns true if method is public.
  • getAnnotations
    Returns annotation infos, if there is any.
  • getClassname
    Returns bytecode-like class name.
  • getDeclaredClassName
    Returns declared class name for inner methods or #getClassname() for top-level methods.
  • getSignature
    Returns java-like method signature.
  • isTopLevelMethod
    Returns true if method is declared in top-level class.
  • getAccessFlags
    Returns methods access flags.
  • getClassInfo
    Returns target jodd.proxetta.ClassInfo.
  • getAccessFlags,
  • getClassInfo,
  • getDescription,
  • getExceptions,
  • getAllArgumentsSize,
  • hasAnnotation,
  • hasNoArguments,
  • hasOneArgument,
  • hasReturnValue

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now