public class ScriptLanguageIndex extends ArrayList<ScriptLanguage>
modCount
Constructor and Description |
---|
ScriptLanguageIndex()
Deprecated.
|
ScriptLanguageIndex(LogService log)
Instantiates an index of the available script languages.
|
Modifier and Type | Method and Description |
---|---|
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) |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
@Deprecated public ScriptLanguageIndex()
public ScriptLanguageIndex(LogService log)
log
- the log service for errors and warningspublic boolean add(ScriptEngineFactory factory, boolean gently)
public ScriptLanguage getByExtension(String extension)
public ScriptLanguage getByName(String name)
public String[] getFileExtensions(ScriptLanguage language)
public boolean canHandleFile(File file)
public boolean canHandleFile(String fileName)
public boolean add(ScriptLanguage language)
add
in interface Collection<ScriptLanguage>
add
in interface List<ScriptLanguage>
add
in class ArrayList<ScriptLanguage>
Copyright © 2015–2022 SciJava. All rights reserved.