Codota Logo
GenericSignatureParser.<init>
Code IndexAdd Codota to your IDE (free)

How to use
libcore.reflect.GenericSignatureParser
constructor

Best Java code snippets using libcore.reflect.GenericSignatureParser.<init> (Showing top 20 results out of 315)

  • Common ways to obtain GenericSignatureParser
private void myMethod () {
GenericSignatureParser g =
  • Codota IconClass klass;new GenericSignatureParser(klass.getClassLoader())
  • Codota IconMethod method;new GenericSignatureParser(method.getDeclaringClass().getClassLoader())
  • Codota IconConstructor function Object() { [native code] };new GenericSignatureParser(function Object() { [native code] }.getDeclaringClass().getClassLoader())
  • Smart code suggestions by Codota
}
origin: robovm/robovm

private synchronized void initGenericType() {
  if (!genericTypesAreInitialized) {
    String signatureAttribute = getSignatureAttribute();
    GenericSignatureParser parser = new GenericSignatureParser(
        getDeclaringClass().getClassLoader());
    parser.parseForField(this.getDeclaringClass(), signatureAttribute);
    genericType = parser.fieldType;
    if (genericType == null) {
      genericType = getType();
    }
    genericTypesAreInitialized = true;
  }
}

origin: robovm/robovm

@SuppressWarnings("unchecked")
private synchronized void initGenericTypes() {
  if (!genericTypesAreInitialized) {
    String signatureAttribute = getSignatureAttribute();
    GenericSignatureParser parser = new GenericSignatureParser(
        getDeclaringClass().getClassLoader());
    parser.parseForMethod(this, signatureAttribute, getExceptionTypes());
    formalTypeParameters = parser.formalTypeParameters;
    genericParameterTypes = parser.parameterTypes;
    genericExceptionTypes = parser.exceptionTypes;
    genericReturnType = parser.returnType;
    genericTypesAreInitialized = true;
  }
}

origin: robovm/robovm

@SuppressWarnings("unchecked")
private synchronized void initGenericTypes() {
  if (!genericTypesAreInitialized) {
    String signatureAttribute = getSignatureAttribute();
    GenericSignatureParser parser = new GenericSignatureParser(
        getDeclaringClass().getClassLoader());
    parser.parseForConstructor(this, signatureAttribute, getExceptionTypes());
    formalTypeParameters = parser.formalTypeParameters;
    genericParameterTypes = parser.parameterTypes;
    genericExceptionTypes = parser.exceptionTypes;
    genericTypesAreInitialized = true;
  }
}

origin: robovm/robovm

/**
 * Returns an array containing {@code TypeVariable} objects for type
 * variables declared by the generic class represented by this {@code
 * Class}. Returns an empty array if the class is not generic.
 */
@SuppressWarnings("unchecked")
public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return parser.formalTypeParameters.clone();
}
origin: robovm/robovm

/**
 * Returns the {@code Type} that represents the superclass of this {@code
 * class}.
 */
public Type getGenericSuperclass() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getType(parser.superclassType);
}
origin: robovm/robovm

/**
 * Returns the {@link Type}s of the interfaces that this {@code Class} directly
 * implements. If the {@code Class} represents a primitive type or {@code
 * void} then an empty array is returned.
 */
public Type[] getGenericInterfaces() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getTypeArray(parser.interfaceTypes, true);
}
origin: com.mobidevelop.robovm/robovm-rt

private synchronized void initGenericType() {
  if (!genericTypesAreInitialized) {
    String signatureAttribute = getSignatureAttribute();
    GenericSignatureParser parser = new GenericSignatureParser(
        getDeclaringClass().getClassLoader());
    parser.parseForField(this.getDeclaringClass(), signatureAttribute);
    genericType = parser.fieldType;
    if (genericType == null) {
      genericType = getType();
    }
    genericTypesAreInitialized = true;
  }
}

origin: com.mobidevelop.robovm/robovm-rt

@SuppressWarnings("unchecked")
private synchronized void initGenericTypes() {
  if (!genericTypesAreInitialized) {
    String signatureAttribute = getSignatureAttribute();
    GenericSignatureParser parser = new GenericSignatureParser(
        getDeclaringClass().getClassLoader());
    parser.parseForMethod(this, signatureAttribute, getExceptionTypes());
    formalTypeParameters = parser.formalTypeParameters;
    genericParameterTypes = parser.parameterTypes;
    genericExceptionTypes = parser.exceptionTypes;
    genericReturnType = parser.returnType;
    genericTypesAreInitialized = true;
  }
}

origin: MobiVM/robovm

/**
 * Returns the {@link Type}s of the interfaces that this {@code Class} directly
 * implements. If the {@code Class} represents a primitive type or {@code
 * void} then an empty array is returned.
 */
public Type[] getGenericInterfaces() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getTypeArray(parser.interfaceTypes, true);
}
origin: ibinti/bugvm

/**
 * Returns an array containing {@code TypeVariable} objects for type
 * variables declared by the generic class represented by this {@code
 * Class}. Returns an empty array if the class is not generic.
 */
@SuppressWarnings("unchecked")
public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return parser.formalTypeParameters.clone();
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the {@code Type} that represents the superclass of this {@code
 * class}.
 */
public Type getGenericSuperclass() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getType(parser.superclassType);
}
origin: ibinti/bugvm

/**
 * Returns the {@code Type} that represents the superclass of this {@code
 * class}.
 */
public Type getGenericSuperclass() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getType(parser.superclassType);
}
origin: com.bugvm/bugvm-rt

/**
 * Returns an array containing {@code TypeVariable} objects for type
 * variables declared by the generic class represented by this {@code
 * Class}. Returns an empty array if the class is not generic.
 */
@SuppressWarnings("unchecked")
public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return parser.formalTypeParameters.clone();
}
origin: MobiVM/robovm

/**
 * Returns an array containing {@code TypeVariable} objects for type
 * variables declared by the generic class represented by this {@code
 * Class}. Returns an empty array if the class is not generic.
 */
@SuppressWarnings("unchecked")
public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return parser.formalTypeParameters.clone();
}
origin: MobiVM/robovm

/**
 * Returns the {@code Type} that represents the superclass of this {@code
 * class}.
 */
public Type getGenericSuperclass() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getType(parser.superclassType);
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the {@link Type}s of the interfaces that this {@code Class} directly
 * implements. If the {@code Class} represents a primitive type or {@code
 * void} then an empty array is returned.
 */
public Type[] getGenericInterfaces() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getTypeArray(parser.interfaceTypes, true);
}
origin: FlexoVM/flexovm

/**
 * Returns an array containing {@code TypeVariable} objects for type
 * variables declared by the generic class represented by this {@code
 * Class}. Returns an empty array if the class is not generic.
 */
@SuppressWarnings("unchecked")
public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return parser.formalTypeParameters.clone();
}
origin: ibinti/bugvm

/**
 * Returns the {@link Type}s of the interfaces that this {@code Class} directly
 * implements. If the {@code Class} represents a primitive type or {@code
 * void} then an empty array is returned.
 */
public Type[] getGenericInterfaces() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getTypeArray(parser.interfaceTypes, true);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the {@link Type}s of the interfaces that this {@code Class} directly
 * implements. If the {@code Class} represents a primitive type or {@code
 * void} then an empty array is returned.
 */
public Type[] getGenericInterfaces() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return Types.getTypeArray(parser.interfaceTypes, true);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns an array containing {@code TypeVariable} objects for type
 * variables declared by the generic class represented by this {@code
 * Class}. Returns an empty array if the class is not generic.
 */
@SuppressWarnings("unchecked")
public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  parser.parseForClass(this, getSignatureAttribute());
  return parser.formalTypeParameters.clone();
}
libcore.reflectGenericSignatureParser<init>

Popular methods of GenericSignatureParser

  • expect
  • isStopSymbol
  • parseClassSignature
  • parseClassTypeSignature
  • parseFieldTypeSignature
  • parseForClass
    Parses the generic signature of a class and creates the data structure representing the signature.
  • parseForConstructor
    Parses the generic signature of a constructor and creates the data structure representing the signat
  • parseForField
    Parses the generic signature of a field and creates the data structure representing the signature.
  • parseForMethod
    Parses the generic signature of a method and creates the data structure representing the signature.
  • parseFormalTypeParameter
  • parseMethodTypeSignature
  • parseOptFormalTypeParameters
  • parseMethodTypeSignature,
  • parseOptFormalTypeParameters,
  • parseOptTypeArguments,
  • parseReturnType,
  • parseTypeArgument,
  • parseTypeSignature,
  • parseTypeVariableSignature,
  • scanIdentifier,
  • scanSymbol

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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