Tabnine Logo
MethodInfo.getArgumentOffset
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now