Tabnine Logo
APTStringManager
Code IndexAdd Tabnine to your IDE (free)

How to use
APTStringManager
in
org.netbeans.modules.cnd.utils.cache

Best Java code snippets using org.netbeans.modules.cnd.utils.cache.APTStringManager (Showing top 20 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

/** Set the token text for this node */
@Override
public void setText(String text_) {
  text = TextCache.getManager().getString(text_);
} 
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

  @Override
  public final void dispose() {
    for (int i = 0; i < instances.length; i++) {
      instances[i].dispose();
    }            
  }        
}    
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

public static APTStringManager instance(String name, CacheKind kind) {
  switch (kind){
    case Single:
      return instance(name, STRING_MANAGER_DEFAULT_CAPACITY);
    case Sliced:
      return instance(name, STRING_MANAGER_DEFAULT_SLICED_NUMBER, STRING_MANAGER_DEFAULT_CAPACITY);
  }
  throw new java.lang.IllegalArgumentException();
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public CharSequence getString(CharSequence text) {
  if (text == null) {
    throw new NullPointerException("null string is illegal to share"); // NOI18N
  }
  text = CharSequences.create(text);
  return instance.getString(text);
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

@Override
public void dispose() {
  instance.dispose();
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

public void fixFolder(CharSequence path){
  if (path != null) {
    projectRoots.put(FilePathCache.getManager().getString(path), Integer.MAX_VALUE / 2);
  }
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public void dispose() {
  instance.dispose();
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

protected ClassEnumBase(CharSequence name, CharSequence qName, CsmFile file, int startOffset, int endOffset) {
  super(file, startOffset, endOffset);
  enclosingElements = Collections.synchronizedList(new ArrayList<CsmUID<CsmOffsetableDeclaration>>(0));
  this.name = NameCache.getManager().getString(name);
  this.qualifiedName = QualifiedNameCache.getManager().getString(qName);
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

@Override
public void dispose() {
  instance.dispose();
}    
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public CharSequence getString(CharSequence text) {
  if (text == null) {
    throw new NullPointerException("null string is illegal to share"); // NOI18N
  }
  text = CharSequences.create(text);
  return instance.getString(text);
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public void dispose() {
  instance.dispose();
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

public static List<CharSequence> asList(Collection<? extends CharSequence> paths) {
  List<CharSequence> out = new ArrayList<CharSequence>(paths.size());
  for (CharSequence path : paths) {
    out.add(FilePathCache.getManager().getString(path));
  }
  return out;
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public void dispose() {
  instance.dispose();
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

private ModuleImpl(CsmFile file, int startOffset, int endOffset, String name) {
  super(file, startOffset, endOffset);
  declarations = new ArrayList<>();
  this.name = NameCache.getManager().getString(name);
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public void dispose() {
  instance.dispose();
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

@Override
public CharSequence getString(CharSequence text) {
  text = CharSequences.create(text);
  return instance.getString(text);
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-classview

public void dispose() {
  instance.dispose();
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

@Override
public CharSequence getString(CharSequence text) {
  if (text == null) {
    throw new NullPointerException("null string is illegal to share"); // NOI18N
  }
  text = CharSequences.create(text);
  return instance.getString(text);
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-classview

public void unregister(){
  if (traceEvents) {
    System.out.println("Clean Children Updater"); // NOI18N
  }
  map.clear();
  projectListeners.clear();
  NameCache.getManager().dispose();
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

public static CharSequence[] splitQualifiedName(String qualified) {
  List<CharSequence> v = new ArrayList<>();
  for (StringTokenizer t = new StringTokenizer(qualified, ": \t\n\r\f", false); t.hasMoreTokens(); ) {// NOI18N 
    v.add(NameCache.getManager().getString(t.nextToken()));
  }
  return v.toArray(new CharSequence[v.size()]);
}   

org.netbeans.modules.cnd.utils.cacheAPTStringManager

Javadoc

APT string table manager Responsibility: - only one instance per String object - based on weak references to allow GC of unused strings

Most used methods

  • getString
  • dispose
  • instance

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Menu (java.awt)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JLabel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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