congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Clazz.parseFormalTypeParameters
Code IndexAdd Tabnine to your IDE (free)

How to use
parseFormalTypeParameters
method
in
aQute.bnd.osgi.Clazz

Best Java code snippets using aQute.bnd.osgi.Clazz.parseFormalTypeParameters (Showing top 3 results out of 315)

origin: biz.aQute.bnd/bndlib

/**
 * This method parses a descriptor and adds the package of the descriptor to
 * the referenced packages. The syntax of the descriptor is:
 * 
 * <pre>
 *   descriptor ::= ( '(' reference * ')' )? reference
 *   reference  ::= 'L' classname ( '&lt;' references '&gt;' )? ';' | 'B' | 'Z' | ... | '+' | '-' | '['
 * </pre>
 * 
 * This methods uses heavy recursion to parse the descriptor and a roving
 * pointer to limit the creation of string objects.
 * 
 * @param descriptor
 *            The to be parsed descriptor
 * @param rover
 *            The pointer to start at
 */
public void parseDescriptor(String descriptor, int modifiers) {
  // Some descriptors are weird, they start with a generic
  // declaration that contains ':', not sure what they mean ...
  int rover = 0;
  if (descriptor.charAt(0) == '<') {
    rover = parseFormalTypeParameters(descriptor, rover, modifiers);
  }
  if (descriptor.charAt(rover) == '(') {
    rover = parseReferences(descriptor, rover + 1, ')', modifiers);
    rover++;
  }
  parseReferences(descriptor, rover, (char) 0, modifiers);
}
origin: biz.aQute/bndlib

/**
 * This method parses a descriptor and adds the package of the descriptor to
 * the referenced packages. The syntax of the descriptor is:
 * 
 * <pre>
 *   descriptor ::= ( '(' reference * ')' )? reference
 *   reference  ::= 'L' classname ( '&lt;' references '&gt;' )? ';' | 'B' | 'Z' | ... | '+' | '-' | '['
 * </pre>
 * 
 * This methods uses heavy recursion to parse the descriptor and a roving
 * pointer to limit the creation of string objects.
 * 
 * @param descriptor
 *            The to be parsed descriptor
 * @param rover
 *            The pointer to start at
 */
public void parseDescriptor(String descriptor, int modifiers) {
  // Some descriptors are weird, they start with a generic
  // declaration that contains ':', not sure what they mean ...
  int rover = 0;
  if (descriptor.charAt(0) == '<') {
    rover = parseFormalTypeParameters(descriptor, rover, modifiers);
  }
  if (descriptor.charAt(rover) == '(') {
    rover = parseReferences(descriptor, rover + 1, ')', modifiers);
    rover++;
  }
  parseReferences(descriptor, rover, (char) 0, modifiers);
}
origin: biz.aQute.bnd/bnd

/**
 * This method parses a descriptor and adds the package of the descriptor to
 * the referenced packages. The syntax of the descriptor is:
 * 
 * <pre>
 *   descriptor ::= ( '(' reference * ')' )? reference
 *   reference  ::= 'L' classname ( '&lt;' references '&gt;' )? ';' | 'B' | 'Z' | ... | '+' | '-' | '['
 * </pre>
 * 
 * This methods uses heavy recursion to parse the descriptor and a roving
 * pointer to limit the creation of string objects.
 * 
 * @param descriptor
 *            The to be parsed descriptor
 * @param rover
 *            The pointer to start at
 */
public void parseDescriptor(String descriptor, int modifiers) {
  // Some descriptors are weird, they start with a generic
  // declaration that contains ':', not sure what they mean ...
  int rover = 0;
  if (descriptor.charAt(0) == '<') {
    rover = parseFormalTypeParameters(descriptor, rover, modifiers);
  }
  if (descriptor.charAt(rover) == '(') {
    rover = parseReferences(descriptor, rover + 1, ')', modifiers);
    rover++;
  }
  parseReferences(descriptor, rover, (char) 0, modifiers);
}
aQute.bnd.osgiClazzparseFormalTypeParameters

Javadoc

FormalTypeParameters

Popular methods of Clazz

  • <init>
  • parseClassFileWithCollector
  • getClassName
  • getFQN
  • getReferred
  • is
  • isAnnotation
  • isInterface
  • crawl
    We must find Class.forName references ...
  • doAnnotation
  • doAnnotations
  • doAttribute
    Process a single attribute, if not recognized, skip it.
  • doAnnotations,
  • doAttribute,
  • doAttributes,
  • doCode,
  • doConstantValue,
  • doElementValue,
  • doEnclosingMethod,
  • doExceptions,
  • doInnerClasses,
  • doParameterAnnotations

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Runner (org.openjdk.jmh.runner)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now