congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TypeCache
Code IndexAdd Tabnine to your IDE (free)

How to use
TypeCache
in
com.buschmais.jqassistant.plugin.java.api.scanner

Best Java code snippets using com.buschmais.jqassistant.plugin.java.api.scanner.TypeCache (Showing top 3 results out of 315)

origin: com.buschmais.jqassistant.plugin/java

/**
 * Constructor.
 */
protected AbstractTypeResolver() {
  this.typeCache = new TypeCache();
}
origin: com.buschmais.jqassistant.plugin/java

private <T extends TypeDescriptor> CachedType<T> getCachedType(String fullQualifiedName, TypeDescriptor typeDescriptor) {
  CachedType<T> cachedType = new CachedType(typeDescriptor);
  typeCache.put(fullQualifiedName, cachedType);
  return cachedType;
}
origin: com.buschmais.jqassistant.plugin/java

@Override
public CachedType<TypeDescriptor> resolve(String fullQualifiedName, ScannerContext context) {
  CachedType<TypeDescriptor> cachedType = typeCache.get(fullQualifiedName);
  if (cachedType == null) {
    TypeDescriptor typeDescriptor = findInArtifact(fullQualifiedName, context);
    if (typeDescriptor == null) {
      typeDescriptor = findInDependencies(fullQualifiedName, context);
    }
    if (typeDescriptor == null) {
      String requiredFileName = "/" + fullQualifiedName.replace(".", "/") + ".class";
      String containedFileName = getContainedFileName(requiredFileName);
      typeDescriptor = context.peek(FileResolver.class).require(requiredFileName, containedFileName, ClassFileDescriptor.class, context);
      setTypeProperties(typeDescriptor, fullQualifiedName);
      addRequiredType(fullQualifiedName, typeDescriptor);
    }
    cachedType = getCachedType(fullQualifiedName, typeDescriptor);
  }
  return cachedType;
}
com.buschmais.jqassistant.plugin.java.api.scannerTypeCache

Javadoc

Cache for resolved types.

Most used methods

  • <init>
    Constructor.
  • get
    Find a type by its fully qualified named.
  • put
    Put a type.

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm 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