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

How to use
libcore.reflect.ListOfTypes
constructor

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

origin: robovm/robovm

/**
 * Parses the generic signature of a method and creates the data structure
 * representing the signature.
 *
 * @param genericDecl the GenericDeclaration calling this method
 * @param signature the generic signature of the class
 */
public void parseForMethod(GenericDeclaration genericDecl,
    String signature, Class<?>[] rawExceptionTypes) {
  setInput(genericDecl, signature);
  if (!eof) {
    parseMethodTypeSignature(rawExceptionTypes);
  } else {
    Method m = (Method) genericDecl;
    this.formalTypeParameters = EmptyArray.TYPE_VARIABLE;
    Class<?>[] parameterTypes = m.getParameterTypes();
    if (parameterTypes.length == 0) {
      this.parameterTypes = ListOfTypes.EMPTY;
    } else {
      this.parameterTypes = new ListOfTypes(parameterTypes);
    }
    Class<?>[] exceptionTypes = m.getExceptionTypes();
    if (exceptionTypes.length == 0) {
      this.exceptionTypes = ListOfTypes.EMPTY;
    } else {
      this.exceptionTypes = new ListOfTypes(exceptionTypes);
    }
    this.returnType = m.getReturnType();
  }
}
origin: robovm/robovm

/**
 * Parses the generic signature of a constructor and creates the data
 * structure representing the signature.
 *
 * @param genericDecl the GenericDeclaration calling this method
 * @param signature the generic signature of the class
 */
public void parseForConstructor(GenericDeclaration genericDecl,
    String signature, Class<?>[] rawExceptionTypes) {
  setInput(genericDecl, signature);
  if (!eof) {
    parseMethodTypeSignature(rawExceptionTypes);
  } else {
    Constructor c = (Constructor) genericDecl;
    this.formalTypeParameters = EmptyArray.TYPE_VARIABLE;
    Class<?>[] parameterTypes = c.getParameterTypes();
    if (parameterTypes.length == 0) {
      this.parameterTypes = ListOfTypes.EMPTY;
    } else {
      this.parameterTypes = new ListOfTypes(parameterTypes);
    }
    Class<?>[] exceptionTypes = c.getExceptionTypes();
    if (exceptionTypes.length == 0) {
      this.exceptionTypes = ListOfTypes.EMPTY;
    } else {
      this.exceptionTypes = new ListOfTypes(exceptionTypes);
    }
  }
}
origin: robovm/robovm

/**
 * Parses the generic signature of a class and creates the data structure
 * representing the signature.
 *
 * @param genericDecl the GenericDeclaration calling this method
 * @param signature the generic signature of the class
 */
public void parseForClass(GenericDeclaration genericDecl, String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    parseClassSignature();
  } else {
    if(genericDecl instanceof Class) {
      Class c = (Class) genericDecl;
      this.formalTypeParameters = EmptyArray.TYPE_VARIABLE;
      this.superclassType = c.getSuperclass();
      Class<?>[] interfaces = c.getInterfaces();
      if (interfaces.length == 0) {
        this.interfaceTypes = ListOfTypes.EMPTY;
      } else {
        this.interfaceTypes = new ListOfTypes(interfaces);
      }
    } else {
      this.formalTypeParameters = EmptyArray.TYPE_VARIABLE;
      this.superclassType = Object.class;
      this.interfaceTypes = ListOfTypes.EMPTY;
    }
  }
}
origin: robovm/robovm

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: robovm/robovm

parameterTypes = new ListOfTypes(16);
expect('(');
while (symbol != ')' && (symbol > 0)) {
  exceptionTypes = new ListOfTypes(8);
  do {
    scanSymbol();
  exceptionTypes = new ListOfTypes(rawExceptionTypes);
} else {
  exceptionTypes = new ListOfTypes(0);
origin: robovm/robovm

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
origin: robovm/robovm

TypeVariableImpl<GenericDeclaration> parseFormalTypeParameter() {
  // FormalTypeParameter ::= Ident ClassBound {InterfaceBound}.
  scanIdentifier();
  String name = identifier.intern(); // FIXME: is this o.k.?
  ListOfTypes bounds = new ListOfTypes(8);
  // ClassBound ::= ":" [FieldTypeSignature].
  expect(':');
  if (symbol == 'L' || symbol == '[' || symbol == 'T') {
    bounds.add(parseFieldTypeSignature());
  }
  while (symbol == ':') {
    // InterfaceBound ::= ":" FieldTypeSignature.
    scanSymbol();
    bounds.add(parseFieldTypeSignature());
  }
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, name, bounds);
}
origin: robovm/robovm

Type parseTypeArgument() {
  // TypeArgument ::= (["+" | "-"] FieldTypeSignature) | "*".
  ListOfTypes extendsBound = new ListOfTypes(1);
  ListOfTypes superBound = new ListOfTypes(1);
  if (symbol == '*') {
    scanSymbol();
    extendsBound.add(Object.class);
    return new WildcardTypeImpl(extendsBound, superBound);
  }
  else if (symbol == '+') {
    scanSymbol();
    extendsBound.add(parseFieldTypeSignature());
    return new WildcardTypeImpl(extendsBound, superBound);
  }
  else if (symbol == '-') {
    scanSymbol();
    superBound.add(parseFieldTypeSignature());
    extendsBound.add(Object.class);
    return new WildcardTypeImpl(extendsBound, superBound);
  }
  else {
    return parseFieldTypeSignature();
  }
}
origin: MobiVM/robovm

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: com.mobidevelop.robovm/robovm-rt

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: com.bugvm/bugvm-rt

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: ibinti/bugvm

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: com.gluonhq/robovm-rt

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: FlexoVM/flexovm

void parseClassSignature() {
  // ClassSignature ::=
  // OptFormalTypeParameters SuperclassSignature {SuperinterfaceSignature}.
  parseOptFormalTypeParameters();
  // SuperclassSignature ::= ClassTypeSignature.
  this.superclassType = parseClassTypeSignature();
  interfaceTypes = new ListOfTypes(16);
  while (symbol > 0) {
    // SuperinterfaceSignature ::= ClassTypeSignature.
    interfaceTypes.add(parseClassTypeSignature());
  }
}
origin: MobiVM/robovm

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
origin: ibinti/bugvm

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
origin: FlexoVM/flexovm

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
origin: com.mobidevelop.robovm/robovm-rt

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
origin: com.gluonhq/robovm-rt

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
origin: com.bugvm/bugvm-rt

ListOfTypes parseOptTypeArguments() {
  // OptTypeArguments ::= "<" TypeArgument {TypeArgument} ">".
  ListOfTypes typeArgs = new ListOfTypes(8);
  if (symbol == '<') {
    scanSymbol();
    typeArgs.add(parseTypeArgument());
    while ((symbol != '>') && (symbol > 0)) {
      typeArgs.add(parseTypeArgument());
    }
    expect('>');
  }
  return typeArgs;
}
libcore.reflectListOfTypes<init>

Popular methods of ListOfTypes

  • add
  • getResolvedTypes
  • length
  • resolveTypes

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • 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