Codota Logo
MethodVisitor.visitAnnotableParameterCount
Code IndexAdd Codota to your IDE (free)

How to use
visitAnnotableParameterCount
method
in
org.objectweb.asm.MethodVisitor

Best Java code snippets using org.objectweb.asm.MethodVisitor.visitAnnotableParameterCount (Showing top 14 results out of 315)

  • Common ways to obtain MethodVisitor
private void myMethod () {
MethodVisitor m =
  • Codota IconClassVisitor zuper;zuper.visitMethod(access, name, desc, signature, exceptions)
  • Codota IconClassVisitor cv;String name;String desc;String signature;String[] exceptions;cv.visitMethod(access, name, desc, signature, exceptions)
  • Codota IconClassVisitor cv;cv.visitMethod(access, "<init>", "()V", null, null)
  • Smart code suggestions by Codota
}
origin: org.ow2.asm/asm

/**
 * Visits the number of method parameters that can have annotations. By default (i.e. when this
 * method is not called), all the method parameters defined by the method descriptor can have
 * annotations.
 *
 * @param parameterCount the number of method parameters than can have annotations. This number
 *     must be less or equal than the number of parameter types in the method descriptor. It can
 *     be strictly less when a method has synthetic parameters and when these parameters are
 *     ignored when computing parameter indices for the purpose of parameter annotations (see
 *     https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.18).
 * @param visible {@literal true} to define the number of method parameters that can have
 *     annotations visible at runtime, {@literal false} to define the number of method parameters
 *     that can have annotations invisible at runtime.
 */
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 if (mv != null) {
  mv.visitAnnotableParameterCount(parameterCount, visible);
 }
}
origin: org.ow2.asm/asm

int currentOffset = runtimeParameterAnnotationsOffset;
int numParameters = b[currentOffset++] & 0xFF;
methodVisitor.visitAnnotableParameterCount(numParameters, visible);
char[] charBuffer = context.charBuffer;
for (int i = 0; i < numParameters; ++i) {
origin: com.bladejava/blade-asm

/**
 * Visits the number of method parameters that can have annotations. By default (i.e. when this
 * method is not called), all the method parameters defined by the method descriptor can have
 * annotations.
 *
 * @param parameterCount the number of method parameters than can have annotations. This number
 *     must be less or equal than the number of parameter types in the method descriptor. It can
 *     be strictly less when a method has synthetic parameters and when these parameters are
 *     ignored when computing parameter indices for the purpose of parameter annotations (see
 *     https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.18).
 * @param visible <tt>true</tt> to define the number of method parameters that can have
 *     annotations visible at runtime, <tt>false</tt> to define the number of method parameters
 *     that can have annotations invisible at runtime.
 */
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 if (mv != null) {
  mv.visitAnnotableParameterCount(parameterCount, visible);
 }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

/**
 * Visits the number of method parameters that can have annotations. By default (i.e. when this
 * method is not called), all the method parameters defined by the method descriptor can have
 * annotations.
 *
 * @param parameterCount the number of method parameters than can have annotations. This number
 *     must be less or equal than the number of parameter types in the method descriptor. It can
 *     be strictly less when a method has synthetic parameters and when these parameters are
 *     ignored when computing parameter indices for the purpose of parameter annotations (see
 *     https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.18).
 * @param visible {@literal true} to define the number of method parameters that can have
 *     annotations visible at runtime, {@literal false} to define the number of method parameters
 *     that can have annotations invisible at runtime.
 */
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 if (mv != null) {
  mv.visitAnnotableParameterCount(parameterCount, visible);
 }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

/**
 * Visits the number of method parameters that can have annotations. By default (i.e. when this
 * method is not called), all the method parameters defined by the method descriptor can have
 * annotations.
 *
 * @param parameterCount the number of method parameters than can have annotations. This number
 *     must be less or equal than the number of parameter types in the method descriptor. It can
 *     be strictly less when a method has synthetic parameters and when these parameters are
 *     ignored when computing parameter indices for the purpose of parameter annotations (see
 *     https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.18).
 * @param visible {@literal true} to define the number of method parameters that can have
 *     annotations visible at runtime, {@literal false} to define the number of method parameters
 *     that can have annotations invisible at runtime.
 */
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 if (mv != null) {
  mv.visitAnnotableParameterCount(parameterCount, visible);
 }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 checkVisitEndNotCalled();
 if (visible) {
  visibleAnnotableParameterCount = parameterCount;
 } else {
  invisibleAnnotableParameterCount = parameterCount;
 }
 super.visitAnnotableParameterCount(parameterCount, visible);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

@Override
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 p.visitAnnotableParameterCount(parameterCount, visible);
 super.visitAnnotableParameterCount(parameterCount, visible);
}
origin: org.ow2.asm/asm-xml

 @Override
 public void begin(final String name, final Attributes attrs) {
  int parameterCount = Integer.parseInt(attrs.getValue("count"));
  boolean visible = Boolean.valueOf(attrs.getValue("visible")).booleanValue();
  ((MethodVisitor) peek()).visitAnnotableParameterCount(parameterCount, visible);
 }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 p.visitAnnotableParameterCount(parameterCount, visible);
 super.visitAnnotableParameterCount(parameterCount, visible);
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

@Override
public void visitAnnotableParameterCount(final int parameterCount, final boolean visible) {
 checkVisitEndNotCalled();
 if (visible) {
  visibleAnnotableParameterCount = parameterCount;
 } else {
  invisibleAnnotableParameterCount = parameterCount;
 }
 super.visitAnnotableParameterCount(parameterCount, visible);
}
origin: org.ow2.asm/asm-tree

methodVisitor.visitAnnotableParameterCount(visibleAnnotableParameterCount, true);
methodVisitor.visitAnnotableParameterCount(invisibleAnnotableParameterCount, false);
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

int currentOffset = runtimeParameterAnnotationsOffset;
int numParameters = b[currentOffset++] & 0xFF;
methodVisitor.visitAnnotableParameterCount(numParameters, visible);
char[] charBuffer = context.charBuffer;
for (int i = 0; i < numParameters; ++i) {
origin: com.bladejava/blade-asm

int currentOffset = runtimeParameterAnnotationsOffset;
int numParameters = b[currentOffset++] & 0xFF;
methodVisitor.visitAnnotableParameterCount(numParameters, visible);
char[] charBuffer = context.charBuffer;
for (int i = 0; i < numParameters; ++i) {
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

int currentOffset = runtimeParameterAnnotationsOffset;
int numParameters = b[currentOffset++] & 0xFF;
methodVisitor.visitAnnotableParameterCount(numParameters, visible);
char[] charBuffer = context.charBuffer;
for (int i = 0; i < numParameters; ++i) {
org.objectweb.asmMethodVisitorvisitAnnotableParameterCount

Javadoc

Visits the number of method parameters that can have annotations. By default (i.e. when this method is not called), all the method parameters defined by the method descriptor can have annotations.

Popular methods of MethodVisitor

  • visitMethodInsn
    Visits a method instruction. A method instruction is an instruction that invokes a method.
  • visitInsn
    Visits a zero operand instruction.
  • visitVarInsn
    Visits a local variable instruction. A local variable instruction is an instruction that loads or st
  • visitMaxs
    Visits the maximum stack size and the maximum number of local variables of the method.
  • visitEnd
    Visits the end of the method. This method, which is the last one to be called, is used to inform the
  • visitCode
    Starts the visit of the method's code, if any (i.e. non abstract method).
  • visitFieldInsn
    Visits a field instruction. A field instruction is an instruction that loads or stores the value of
  • visitTypeInsn
    Visits a type instruction. A type instruction is an instruction that takes the internal name of a cl
  • visitLabel
    Visits a label. A label designates the instruction that will be visited just after it.
  • visitLdcInsn
    Visits a LDC instruction. Note that new constant types may be added in future versions of the Java V
  • visitJumpInsn
    Visits a jump instruction. A jump instruction is an instruction that may jump to another instruction
  • visitIntInsn
    Visits an instruction with a single int operand.
  • visitJumpInsn,
  • visitIntInsn,
  • visitLocalVariable,
  • visitAnnotation,
  • visitTryCatchBlock,
  • visitLineNumber,
  • visitFrame,
  • visitTableSwitchInsn,
  • visitParameterAnnotation,
  • visitIincInsn

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JButton (javax.swing)
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