Tabnine Logo
GenericSignatureParser.setInput
Code IndexAdd Tabnine to your IDE (free)

How to use
setInput
method
in
libcore.reflect.GenericSignatureParser

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

origin: robovm/robovm

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
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

/**
 * 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: MobiVM/robovm

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
origin: ibinti/bugvm

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
origin: FlexoVM/flexovm

/**
 * Parses the generic signature of a field 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 parseForField(GenericDeclaration genericDecl,
    String signature) {
  setInput(genericDecl, signature);
  if (!eof) {
    this.fieldType = parseFieldTypeSignature();
  }
}
origin: MobiVM/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: FlexoVM/flexovm

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

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

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

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

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

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

/**
 * 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: MobiVM/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);
    }
  }
}
libcore.reflectGenericSignatureParsersetInput

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,
  • scanIdentifier,
  • scanSymbol

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JCheckBox (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Github Copilot alternatives
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