Tabnine Logo
ClassWriter.addType
Code IndexAdd Tabnine to your IDE (free)

How to use
addType
method
in
jersey.repackaged.org.objectweb.asm.ClassWriter

Best Java code snippets using jersey.repackaged.org.objectweb.asm.ClassWriter.addType (Showing top 20 results out of 315)

origin: com.sun.jersey/jersey-server

int s;
if (t == UNINITIALIZED_THIS) {
  s = OBJECT | cw.addType(cw.thisName);
} else if ((t & (DIM | BASE_KIND)) == UNINITIALIZED) {
  String type = cw.typeTable[t & BASE_VALUE].strVal1;
  s = OBJECT | cw.addType(type);
} else {
  return t;
origin: com.sun.jersey/jersey-server

/**
 * Adds the given "uninitialized" type to {@link #typeTable} and returns its
 * index. This method is used for UNINITIALIZED types, made of an internal
 * name and a bytecode offset.
 *
 * @param type
 *            the internal name to be added to the type table.
 * @param offset
 *            the bytecode offset of the NEW instruction that created this
 *            UNINITIALIZED type value.
 * @return the index of this internal name in the type table.
 */
int addUninitializedType(final String type, final int offset) {
  key.type = TYPE_UNINIT;
  key.intVal = offset;
  key.strVal1 = type;
  key.hashCode = 0x7FFFFFFF & (TYPE_UNINIT + type.hashCode() + offset);
  Item result = get(key);
  if (result == null) {
    result = addType(key);
  }
  return result.index;
}
origin: com.sun.jersey/jersey-server

    v = vdim | OBJECT | cw.addType("java/lang/Object");
      : ELEMENT_OF) + (u & DIM);
  v = Math.min(tdim, udim) | OBJECT
      | cw.addType("java/lang/Object");
} else {
origin: com.sun.jersey/jersey-server

return OBJECT | cw.addType(t);
  data = OBJECT | cw.addType(t);
origin: com.sun.jersey/jersey-server

if ((access & Opcodes.ACC_STATIC) == 0) {
  if ((access & ACC_CONSTRUCTOR) == 0) {
    frame[frameIndex++] = Frame.OBJECT | cw.addType(cw.thisName);
  } else {
    frame[frameIndex++] = 6; // Opcodes.UNINITIALIZED_THIS;
        | cw.addType(descriptor.substring(j, ++i));
    break;
  case 'L':
        | cw.addType(descriptor.substring(j + 1, i++));
    break;
  default:
origin: com.sun.jersey/jersey-server

/**
 * Adds the given internal name to {@link #typeTable} and returns its index.
 * Does nothing if the type table already contains this internal name.
 *
 * @param type
 *            the internal name to be added to the type table.
 * @return the index of this internal name in the type table.
 */
int addType(final String type) {
  key.set(TYPE_NORMAL, type, null, null);
  Item result = get(key);
  if (result == null) {
    result = addType(key);
  }
  return result.index;
}
origin: com.sun.jersey/jersey-server

if ((access & Opcodes.ACC_STATIC) == 0) {
  if ((access & MethodWriter.ACC_CONSTRUCTOR) == 0) {
    inputLocals[i++] = OBJECT | cw.addType(cw.thisName);
  } else {
    inputLocals[i++] = UNINITIALIZED_THIS;
origin: com.sun.jersey/jersey-server

/**
 * Returns the index of the common super type of the two given types. This
 * method calls {@link #getCommonSuperClass} and caches the result in the
 * {@link #items} hash table to speedup future calls with the same
 * parameters.
 *
 * @param type1
 *            index of an internal name in {@link #typeTable}.
 * @param type2
 *            index of an internal name in {@link #typeTable}.
 * @return the index of the common super type of the two given types.
 */
int getMergedType(final int type1, final int type2) {
  key2.type = TYPE_MERGED;
  key2.longVal = type1 | (((long) type2) << 32);
  key2.hashCode = 0x7FFFFFFF & (TYPE_MERGED + type1 + type2);
  Item result = get(key2);
  if (result == null) {
    String t = typeTable[type1].strVal1;
    String u = typeTable[type2].strVal1;
    key2.intVal = addType(getCommonSuperClass(t, u));
    result = new Item((short) 0, key2);
    put(result);
  }
  return result.intVal;
}
origin: com.sun.jersey/jersey-server

if (local[i] instanceof String) {
  frame[frameIndex++] = Frame.OBJECT
      | cw.addType((String) local[i]);
} else if (local[i] instanceof Integer) {
  frame[frameIndex++] = ((Integer) local[i]).intValue();
if (stack[i] instanceof String) {
  frame[frameIndex++] = Frame.OBJECT
      | cw.addType((String) stack[i]);
} else if (stack[i] instanceof Integer) {
  frame[frameIndex++] = ((Integer) stack[i]).intValue();
origin: com.sun.jersey/jersey-server

int kind = Frame.OBJECT | cw.addType(t);
        | cw.addType("java/lang/Throwable");
    endFrame();
origin: org.glassfish.jersey.core/jersey-server

int s;
if (t == UNINITIALIZED_THIS) {
  s = OBJECT | cw.addType(cw.thisName);
} else if ((t & (DIM | BASE_KIND)) == UNINITIALIZED) {
  String type = cw.typeTable[t & BASE_VALUE].strVal1;
  s = OBJECT | cw.addType(type);
} else {
  return t;
origin: org.glassfish.jersey.core/jersey-server

/**
 * Adds the given "uninitialized" type to {@link #typeTable} and returns its
 * index. This method is used for UNINITIALIZED types, made of an internal
 * name and a bytecode offset.
 *
 * @param type
 *            the internal name to be added to the type table.
 * @param offset
 *            the bytecode offset of the NEW instruction that created this
 *            UNINITIALIZED type value.
 * @return the index of this internal name in the type table.
 */
int addUninitializedType(final String type, final int offset) {
  key.type = TYPE_UNINIT;
  key.intVal = offset;
  key.strVal1 = type;
  key.hashCode = 0x7FFFFFFF & (TYPE_UNINIT + type.hashCode() + offset);
  Item result = get(key);
  if (result == null) {
    result = addType(key);
  }
  return result.index;
}
origin: org.glassfish.jersey.core/jersey-server

    v = vdim | OBJECT | cw.addType("java/lang/Object");
      : ELEMENT_OF) + (u & DIM);
  v = Math.min(tdim, udim) | OBJECT
    | cw.addType("java/lang/Object");
} else {
origin: org.glassfish.jersey.core/jersey-server

return OBJECT | cw.addType(t);
    data = OBJECT | cw.addType(t);
origin: org.glassfish.jersey.core/jersey-server

if ((access & Opcodes.ACC_STATIC) == 0) {
  if ((access & ACC_CONSTRUCTOR) == 0) {
    frame[frameIndex++] = Frame.OBJECT | cw.addType(cw.thisName);
  } else {
    frame[frameIndex++] = 6; // Opcodes.UNINITIALIZED_THIS;
                 | cw.addType(descriptor.substring(j, ++i));
      break;
    case 'L':
                 | cw.addType(descriptor.substring(j + 1, i++));
      break;
    default:
origin: org.glassfish.jersey.core/jersey-server

/**
 * Adds the given internal name to {@link #typeTable} and returns its index.
 * Does nothing if the type table already contains this internal name.
 *
 * @param type
 *            the internal name to be added to the type table.
 * @return the index of this internal name in the type table.
 */
int addType(final String type) {
  key.set(TYPE_NORMAL, type, null, null);
  Item result = get(key);
  if (result == null) {
    result = addType(key);
  }
  return result.index;
}
origin: org.glassfish.jersey.core/jersey-server

if ((access & Opcodes.ACC_STATIC) == 0) {
  if ((access & MethodWriter.ACC_CONSTRUCTOR) == 0) {
    inputLocals[i++] = OBJECT | cw.addType(cw.thisName);
  } else {
    inputLocals[i++] = UNINITIALIZED_THIS;
origin: com.sun.jersey/jersey-server

  break;
case ClassWriter.CLASS:
  push(OBJECT | cw.addType("java/lang/Class"));
  break;
case ClassWriter.STR:
  push(OBJECT | cw.addType("java/lang/String"));
  break;
case ClassWriter.MTYPE:
  push(OBJECT | cw.addType("java/lang/invoke/MethodType"));
  break;
  push(OBJECT | cw.addType("java/lang/invoke/MethodHandle"));
  push(cw, '[' + s);
} else {
  push(ARRAY_OF | OBJECT | cw.addType(s));
  push(cw, s);
} else {
  push(OBJECT | cw.addType(s));
origin: org.glassfish.jersey.core/jersey-server

/**
 * Returns the index of the common super type of the two given types. This
 * method calls {@link #getCommonSuperClass} and caches the result in the
 * {@link #items} hash table to speedup future calls with the same
 * parameters.
 *
 * @param type1
 *            index of an internal name in {@link #typeTable}.
 * @param type2
 *            index of an internal name in {@link #typeTable}.
 * @return the index of the common super type of the two given types.
 */
int getMergedType(final int type1, final int type2) {
  key2.type = TYPE_MERGED;
  key2.longVal = type1 | (((long) type2) << 32);
  key2.hashCode = 0x7FFFFFFF & (TYPE_MERGED + type1 + type2);
  Item result = get(key2);
  if (result == null) {
    String t = typeTable[type1].strVal1;
    String u = typeTable[type2].strVal1;
    key2.intVal = addType(getCommonSuperClass(t, u));
    result = new Item((short) 0, key2);
    put(result);
  }
  return result.intVal;
}
origin: org.glassfish.jersey.core/jersey-server

if (local[i] instanceof String) {
  frame[frameIndex++] = Frame.OBJECT
             | cw.addType((String) local[i]);
} else if (local[i] instanceof Integer) {
  frame[frameIndex++] = ((Integer) local[i]).intValue();
if (stack[i] instanceof String) {
  frame[frameIndex++] = Frame.OBJECT
             | cw.addType((String) stack[i]);
} else if (stack[i] instanceof Integer) {
  frame[frameIndex++] = ((Integer) stack[i]).intValue();
jersey.repackaged.org.objectweb.asmClassWriteraddType

Javadoc

Adds the given internal name to #typeTable and returns its index. Does nothing if the type table already contains this internal name.

Popular methods of ClassWriter

  • toByteArray
    Returns the bytecode of the class that was build with this class writer.
  • addUninitializedType
    Adds the given "uninitialized" type to #typeTable and returns its index. This method is used for UNI
  • get
    Returns the constant pool's hash table item which is equal to the given item.
  • getCommonSuperClass
    Returns the common super type of the two given types. The default implementation of this method load
  • getMergedType
    Returns the index of the common super type of the two given types. This method calls #getCommonSuper
  • newClass
    Adds a class reference to the constant pool of the class being build. Does nothing if the constant p
  • newClassItem
    Adds a class reference to the constant pool of the class being build. Does nothing if the constant p
  • newConst
    Adds a number or string constant to the constant pool of the class being build. Does nothing if the
  • newConstItem
    Adds a number or string constant to the constant pool of the class being build. Does nothing if the
  • newDouble
    Adds a double to the constant pool of the class being build. Does nothing if the constant pool alrea
  • newField
    Adds a field reference to the constant pool of the class being build. Does nothing if the constant p
  • newFieldItem
    Adds a field reference to the constant pool of the class being build. Does nothing if the constant p
  • newField,
  • newFieldItem,
  • newFloat,
  • newHandle,
  • newHandleItem,
  • newInteger,
  • newInvokeDynamicItem,
  • newLong,
  • newMethod

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Table (org.hibernate.mapping)
    A relational table
  • Option (scala)
  • Top PhpStorm 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