Modifier and Type | Field and Description |
---|---|
char[] |
importChars |
Constructor and Description |
---|
TokenFunctions(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea) |
Modifier and Type | Method and Description |
---|---|
void |
addImport(String className) |
boolean |
emptyLineAt(int offset) |
boolean |
eolAt(int offset) |
Set<String> |
getAllUsedIdentifiers() |
String |
getClassName() |
List<org.scijava.ui.swing.script.TokenFunctions.Import> |
getImports() |
String |
getText(int start,
int end) |
static String |
getText(org.fife.ui.rsyntaxtextarea.Token token) |
static boolean |
isClass(org.fife.ui.rsyntaxtextarea.Token token) |
static boolean |
isDot(org.fife.ui.rsyntaxtextarea.Token token) |
static boolean |
isIdentifier(org.fife.ui.rsyntaxtextarea.Token token) |
Iterator<org.fife.ui.rsyntaxtextarea.Token> |
iterator() |
void |
removeTrailingWhitespace() |
void |
removeUnusedImports() |
void |
replaceToken(org.fife.ui.rsyntaxtextarea.Token token,
String text) |
void |
setClassName(String className) |
void |
sortImports() |
static boolean |
tokenEquals(org.fife.ui.rsyntaxtextarea.Token token,
char[] text) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public TokenFunctions(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
public static boolean tokenEquals(org.fife.ui.rsyntaxtextarea.Token token, char[] text)
public static boolean isIdentifier(org.fife.ui.rsyntaxtextarea.Token token)
public static String getText(org.fife.ui.rsyntaxtextarea.Token token)
public void replaceToken(org.fife.ui.rsyntaxtextarea.Token token, String text)
public Iterator<org.fife.ui.rsyntaxtextarea.Token> iterator()
public static boolean isDot(org.fife.ui.rsyntaxtextarea.Token token)
public static boolean isClass(org.fife.ui.rsyntaxtextarea.Token token)
public String getClassName()
public void setClassName(String className)
public List<org.scijava.ui.swing.script.TokenFunctions.Import> getImports()
public String getText(int start, int end)
public boolean emptyLineAt(int offset)
public boolean eolAt(int offset)
public void removeUnusedImports()
public void addImport(String className)
public void sortImports()
public void removeTrailingWhitespace()
Copyright © 2015–2022 SciJava. All rights reserved.