Codota Logo
GenericSignatureParser.scanIdentifier
Code IndexAdd Codota to your IDE (free)

How to use
scanIdentifier
method
in
libcore.reflect.GenericSignatureParser

Best Java code snippets using libcore.reflect.GenericSignatureParser.scanIdentifier (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

Type parseClassTypeSignature() {
  // ClassTypeSignature ::= "L" {Ident "/"} Ident
  //         OptTypeArguments {"." Ident OptTypeArguments} ";".
  expect('L');
  StringBuilder qualIdent = new StringBuilder();
  scanIdentifier();
  while (symbol == '/') {
    scanSymbol();
    qualIdent.append(identifier).append(".");
    scanIdentifier();
  }
  qualIdent.append(this.identifier);
  ListOfTypes typeArgs = parseOptTypeArguments();
  ParameterizedTypeImpl parentType =
      new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
  ParameterizedTypeImpl type = parentType;
  while (symbol == '.') {
    // Deal with Member Classes:
    scanSymbol();
    scanIdentifier();
    qualIdent.append("$").append(identifier); // FIXME: is "$" correct?
    typeArgs = parseOptTypeArguments();
    type = new ParameterizedTypeImpl(parentType, qualIdent.toString(), typeArgs,
        loader);
  }
  expect(';');
  return type;
}
origin: robovm/robovm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
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: MobiVM/robovm

Type parseClassTypeSignature() {
  // ClassTypeSignature ::= "L" {Ident "/"} Ident
  //         OptTypeArguments {"." Ident OptTypeArguments} ";".
  expect('L');
  StringBuilder qualIdent = new StringBuilder();
  scanIdentifier();
  while (symbol == '/') {
    scanSymbol();
    qualIdent.append(identifier).append(".");
    scanIdentifier();
  }
  qualIdent.append(this.identifier);
  ListOfTypes typeArgs = parseOptTypeArguments();
  ParameterizedTypeImpl parentType =
      new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
  ParameterizedTypeImpl type = parentType;
  while (symbol == '.') {
    // Deal with Member Classes:
    scanSymbol();
    scanIdentifier();
    qualIdent.append("$").append(identifier); // FIXME: is "$" correct?
    typeArgs = parseOptTypeArguments();
    type = new ParameterizedTypeImpl(parentType, qualIdent.toString(), typeArgs,
        loader);
  }
  expect(';');
  return type;
}
origin: com.bugvm/bugvm-rt

Type parseClassTypeSignature() {
  // ClassTypeSignature ::= "L" {Ident "/"} Ident
  //         OptTypeArguments {"." Ident OptTypeArguments} ";".
  expect('L');
  StringBuilder qualIdent = new StringBuilder();
  scanIdentifier();
  while (symbol == '/') {
    scanSymbol();
    qualIdent.append(identifier).append(".");
    scanIdentifier();
  }
  qualIdent.append(this.identifier);
  ListOfTypes typeArgs = parseOptTypeArguments();
  ParameterizedTypeImpl parentType =
      new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
  ParameterizedTypeImpl type = parentType;
  while (symbol == '.') {
    // Deal with Member Classes:
    scanSymbol();
    scanIdentifier();
    qualIdent.append("$").append(identifier); // FIXME: is "$" correct?
    typeArgs = parseOptTypeArguments();
    type = new ParameterizedTypeImpl(parentType, qualIdent.toString(), typeArgs,
        loader);
  }
  expect(';');
  return type;
}
origin: com.gluonhq/robovm-rt

Type parseClassTypeSignature() {
  // ClassTypeSignature ::= "L" {Ident "/"} Ident
  //         OptTypeArguments {"." Ident OptTypeArguments} ";".
  expect('L');
  StringBuilder qualIdent = new StringBuilder();
  scanIdentifier();
  while (symbol == '/') {
    scanSymbol();
    qualIdent.append(identifier).append(".");
    scanIdentifier();
  }
  qualIdent.append(this.identifier);
  ListOfTypes typeArgs = parseOptTypeArguments();
  ParameterizedTypeImpl parentType =
      new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
  ParameterizedTypeImpl type = parentType;
  while (symbol == '.') {
    // Deal with Member Classes:
    scanSymbol();
    scanIdentifier();
    qualIdent.append("$").append(identifier); // FIXME: is "$" correct?
    typeArgs = parseOptTypeArguments();
    type = new ParameterizedTypeImpl(parentType, qualIdent.toString(), typeArgs,
        loader);
  }
  expect(';');
  return type;
}
origin: ibinti/bugvm

Type parseClassTypeSignature() {
  // ClassTypeSignature ::= "L" {Ident "/"} Ident
  //         OptTypeArguments {"." Ident OptTypeArguments} ";".
  expect('L');
  StringBuilder qualIdent = new StringBuilder();
  scanIdentifier();
  while (symbol == '/') {
    scanSymbol();
    qualIdent.append(identifier).append(".");
    scanIdentifier();
  }
  qualIdent.append(this.identifier);
  ListOfTypes typeArgs = parseOptTypeArguments();
  ParameterizedTypeImpl parentType =
      new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
  ParameterizedTypeImpl type = parentType;
  while (symbol == '.') {
    // Deal with Member Classes:
    scanSymbol();
    scanIdentifier();
    qualIdent.append("$").append(identifier); // FIXME: is "$" correct?
    typeArgs = parseOptTypeArguments();
    type = new ParameterizedTypeImpl(parentType, qualIdent.toString(), typeArgs,
        loader);
  }
  expect(';');
  return type;
}
origin: com.mobidevelop.robovm/robovm-rt

Type parseClassTypeSignature() {
  // ClassTypeSignature ::= "L" {Ident "/"} Ident
  //         OptTypeArguments {"." Ident OptTypeArguments} ";".
  expect('L');
  StringBuilder qualIdent = new StringBuilder();
  scanIdentifier();
  while (symbol == '/') {
    scanSymbol();
    qualIdent.append(identifier).append(".");
    scanIdentifier();
  }
  qualIdent.append(this.identifier);
  ListOfTypes typeArgs = parseOptTypeArguments();
  ParameterizedTypeImpl parentType =
      new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
  ParameterizedTypeImpl type = parentType;
  while (symbol == '.') {
    // Deal with Member Classes:
    scanSymbol();
    scanIdentifier();
    qualIdent.append("$").append(identifier); // FIXME: is "$" correct?
    typeArgs = parseOptTypeArguments();
    type = new ParameterizedTypeImpl(parentType, qualIdent.toString(), typeArgs,
        loader);
  }
  expect(';');
  return type;
}
origin: MobiVM/robovm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: com.mobidevelop.robovm/robovm-rt

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: ibinti/bugvm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: com.gluonhq/robovm-rt

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: com.bugvm/bugvm-rt

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: FlexoVM/flexovm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: com.gluonhq/robovm-rt

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: ibinti/bugvm

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: MobiVM/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: com.bugvm/bugvm-rt

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: com.mobidevelop.robovm/robovm-rt

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: FlexoVM/flexovm

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);
}
libcore.reflectGenericSignatureParserscanIdentifier

Popular methods of GenericSignatureParser

  • <init>
  • 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
  • parseFormalTypeParameter,
  • parseMethodTypeSignature,
  • parseOptFormalTypeParameters,
  • parseOptTypeArguments,
  • parseReturnType,
  • parseTypeArgument,
  • parseTypeSignature,
  • parseTypeVariableSignature,
  • scanSymbol

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
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