org.scijava.script
Class ScriptLanguageIndex

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<ScriptLanguage>
              extended by org.scijava.script.ScriptLanguageIndex
All Implemented Interfaces:
Serializable, Cloneable, Iterable<ScriptLanguage>, Collection<ScriptLanguage>, Set<ScriptLanguage>

public class ScriptLanguageIndex
extends HashSet<ScriptLanguage>

Data structure for managing registered scripting languages.

Author:
Johannes Schindelin, Curtis Rueden
See Also:
Serialized Form

Constructor Summary
ScriptLanguageIndex()
           
 
Method Summary
 boolean add(ScriptEngineFactory factory, boolean gently)
           
 boolean add(ScriptLanguage language)
           
 boolean canHandleFile(File file)
           
 boolean canHandleFile(String fileName)
           
 ScriptLanguage getByExtension(String extension)
           
 ScriptLanguage getByName(String name)
           
 String[] getFileExtensions(ScriptLanguage language)
           
 
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ScriptLanguageIndex

public ScriptLanguageIndex()
Method Detail

add

public boolean add(ScriptEngineFactory factory,
                   boolean gently)

getByExtension

public ScriptLanguage getByExtension(String extension)

getByName

public ScriptLanguage getByName(String name)

getFileExtensions

public String[] getFileExtensions(ScriptLanguage language)

canHandleFile

public boolean canHandleFile(File file)

canHandleFile

public boolean canHandleFile(String fileName)

add

public boolean add(ScriptLanguage language)
Specified by:
add in interface Collection<ScriptLanguage>
Specified by:
add in interface Set<ScriptLanguage>
Overrides:
add in class HashSet<ScriptLanguage>


Copyright © 2009–2014 SciJava. All rights reserved.