Tabnine Logo
ByteVector.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jersey.repackaged.org.objectweb.asm.ByteVector
constructor

Best Java code snippets using jersey.repackaged.org.objectweb.asm.ByteVector.<init> (Showing top 20 results out of 315)

Refine searchRefine arrow

  • ByteVector.putShort
  • ClassWriter.newUTF8
origin: com.sun.jersey/jersey-server

@Override
public void visitLineNumber(final int line, final Label start) {
  if (lineNumber == null) {
    lineNumber = new ByteVector();
  }
  ++lineNumberCount;
  lineNumber.putShort(start.position);
  lineNumber.putShort(line);
}
origin: com.sun.jersey/jersey-server

@Override
public void visitParameter(String name, int access) {
  if (methodParameters == null) {
    methodParameters = new ByteVector();
  }
  ++methodParametersCount;
  methodParameters.putShort((name == null) ? 0 : cw.newUTF8(name))
      .putShort(access);
}
origin: com.sun.jersey/jersey-server

@Override
public final void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().encodeUTF8(debug, 0,
        Integer.MAX_VALUE);
  }
}
origin: com.sun.jersey/jersey-server

@Override
public AnnotationVisitor visitAnnotation(final String desc,
    final boolean visible) {
  if (!ClassReader.ANNOTATIONS) {
    return null;
  }
  ByteVector bv = new ByteVector();
  // write type, and reserve space for values count
  bv.putShort(cw.newUTF8(desc)).putShort(0);
  AnnotationWriter aw = new AnnotationWriter(cw, true, bv, bv, 2);
  if (visible) {
    aw.next = anns;
    anns = aw;
  } else {
    aw.next = ianns;
    ianns = aw;
  }
  return aw;
}
origin: com.sun.jersey/jersey-server

int delta;
if (stackMap == null) {
  stackMap = new ByteVector();
  delta = code.length;
} else {
case Opcodes.F_FULL:
  currentLocals = nLocal;
  stackMap.putByte(FULL_FRAME).putShort(delta).putShort(nLocal);
  for (int i = 0; i < nLocal; ++i) {
    writeFrameType(local[i]);
  stackMap.putShort(nStack);
  for (int i = 0; i < nStack; ++i) {
    writeFrameType(stack[i]);
origin: org.glassfish.jersey.core/jersey-server

@Override
public final void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().encodeUTF8(debug, 0,
        Integer.MAX_VALUE);
  }
}
origin: com.sun.jersey/jersey-server

@Override
public AnnotationVisitor visitAnnotation(final String desc,
    final boolean visible) {
  if (!ClassReader.ANNOTATIONS) {
    return null;
  }
  ByteVector bv = new ByteVector();
  // write type, and reserve space for values count
  bv.putShort(cw.newUTF8(desc)).putShort(0);
  AnnotationWriter aw = new AnnotationWriter(cw, true, bv, bv, 2);
  if (visible) {
    aw.next = anns;
    anns = aw;
  } else {
    aw.next = ianns;
    ianns = aw;
  }
  return aw;
}
origin: com.sun.jersey/jersey-server

  bootstrapMethods = this.bootstrapMethods = new ByteVector();
bootstrapMethods.putShort(newHandle(bsm.tag, bsm.owner, bsm.name,
    bsm.desc));
bootstrapMethods.putShort(argsLength);
  bootstrapMethods.putShort(newConst(bsmArg));
origin: com.sun.jersey/jersey-bundle

@Override
public final void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().encodeUTF8(debug, 0,
        Integer.MAX_VALUE);
  }
}
origin: com.sun.jersey/jersey-server

@Override
public final AnnotationVisitor visitAnnotation(final String desc,
    final boolean visible) {
  if (!ClassReader.ANNOTATIONS) {
    return null;
  }
  ByteVector bv = new ByteVector();
  // write type, and reserve space for values count
  bv.putShort(newUTF8(desc)).putShort(0);
  AnnotationWriter aw = new AnnotationWriter(this, true, bv, bv, 2);
  if (visible) {
    aw.next = anns;
    anns = aw;
  } else {
    aw.next = ianns;
    ianns = aw;
  }
  return aw;
}
origin: org.glassfish.jersey.core/jersey-server

@Override
public void visitLineNumber(final int line, final Label start) {
  if (lineNumber == null) {
    lineNumber = new ByteVector();
  }
  ++lineNumberCount;
  lineNumber.putShort(start.position);
  lineNumber.putShort(line);
}
origin: jersey/jersey-1.x

@Override
public final void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().encodeUTF8(debug, 0,
        Integer.MAX_VALUE);
  }
}
origin: com.sun.jersey/jersey-server

if (signature != null) {
  if (localVarType == null) {
    localVarType = new ByteVector();
  localVarType.putShort(start.position)
      .putShort(end.position - start.position)
      .putShort(cw.newUTF8(name)).putShort(cw.newUTF8(signature))
      .putShort(index);
  localVar = new ByteVector();
localVar.putShort(start.position)
    .putShort(end.position - start.position)
    .putShort(cw.newUTF8(name)).putShort(cw.newUTF8(desc))
    .putShort(index);
if (compute != NOTHING) {
origin: com.sun.jersey/jersey-server

ByteVector newCode = new ByteVector(code.length);
        newCode.putByte(opcode <= 166 ? ((opcode + 1) ^ 1) - 1
            : opcode ^ 1);
        newCode.putShort(8); // jump offset
        newCode.putByte(200); // GOTO_W
    } else {
      newCode.putByte(opcode);
      newCode.putShort(newOffset);
origin: org.glassfish.jersey.bundles/jaxrs-ri

@Override
public final void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().encodeUTF8(debug, 0,
        Integer.MAX_VALUE);
  }
}
origin: com.sun.jersey/jersey-server

@Override
public AnnotationVisitor visitTypeAnnotation(final int typeRef,
    final TypePath typePath, final String desc, final boolean visible) {
  if (!ClassReader.ANNOTATIONS) {
    return null;
  }
  ByteVector bv = new ByteVector();
  // write target_type and target_info
  AnnotationWriter.putTarget(typeRef, typePath, bv);
  // write type, and reserve space for values count
  bv.putShort(cw.newUTF8(desc)).putShort(0);
  AnnotationWriter aw = new AnnotationWriter(cw, true, bv, bv,
      bv.length - 2);
  if (visible) {
    aw.next = tanns;
    tanns = aw;
  } else {
    aw.next = itanns;
    itanns = aw;
  }
  return aw;
}
origin: org.glassfish.jersey.core/jersey-server

int delta;
if (stackMap == null) {
  stackMap = new ByteVector();
  delta = code.length;
} else {
  case Opcodes.F_FULL:
    currentLocals = nLocal;
    stackMap.putByte(FULL_FRAME).putShort(delta).putShort(nLocal);
    for (int i = 0; i < nLocal; ++i) {
      writeFrameType(local[i]);
    stackMap.putShort(nStack);
    for (int i = 0; i < nStack; ++i) {
      writeFrameType(stack[i]);
origin: eclipse-ee4j/jersey

@Override
public final void visitSource(final String file, final String debug) {
  if (file != null) {
    sourceFile = newUTF8(file);
  }
  if (debug != null) {
    sourceDebug = new ByteVector().encodeUTF8(debug, 0,
        Integer.MAX_VALUE);
  }
}
origin: com.sun.jersey/jersey-server

@Override
public final AnnotationVisitor visitTypeAnnotation(int typeRef,
    TypePath typePath, final String desc, final boolean visible) {
  if (!ClassReader.ANNOTATIONS) {
    return null;
  }
  ByteVector bv = new ByteVector();
  // write target_type and target_info
  AnnotationWriter.putTarget(typeRef, typePath, bv);
  // write type, and reserve space for values count
  bv.putShort(newUTF8(desc)).putShort(0);
  AnnotationWriter aw = new AnnotationWriter(this, true, bv, bv,
      bv.length - 2);
  if (visible) {
    aw.next = tanns;
    tanns = aw;
  } else {
    aw.next = itanns;
    itanns = aw;
  }
  return aw;
}
origin: org.glassfish.jersey.core/jersey-server

  bootstrapMethods = this.bootstrapMethods = new ByteVector();
bootstrapMethods.putShort(newHandle(bsm.tag, bsm.owner, bsm.name,
    bsm.desc));
bootstrapMethods.putShort(argsLength);
  bootstrapMethods.putShort(newConst(bsmArg));
jersey.repackaged.org.objectweb.asmByteVector<init>

Javadoc

Constructs a new ByteVector with a default initial size.

Popular methods of ByteVector

  • encodeUTF8
    Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary. T
  • enlarge
    Enlarge this byte vector so that it can receive n more bytes.
  • put11
    Puts two bytes into this byte vector. The byte vector is automatically enlarged if necessary.
  • put12
    Puts a byte and a short into this byte vector. The byte vector is automatically enlarged if necessar
  • putByte
    Puts a byte into this byte vector. The byte vector is automatically enlarged if necessary.
  • putByteArray
    Puts an array of bytes into this byte vector. The byte vector is automatically enlarged if necessary
  • putInt
    Puts an int into this byte vector. The byte vector is automatically enlarged if necessary.
  • putLong
    Puts a long into this byte vector. The byte vector is automatically enlarged if necessary.
  • putShort
    Puts a short into this byte vector. The byte vector is automatically enlarged if necessary.
  • putUTF8
    Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary.
  • addElement
  • toArray
  • addElement,
  • toArray

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JTable (javax.swing)
  • Top Vim 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