|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.rsyntaxtextarea.TokenMakerFactory
org.fife.ui.rsyntaxtextarea.AbstractTokenMakerFactory
public abstract class AbstractTokenMakerFactory
Base class for TokenMakerFactory implementations. A mapping from
language keys to the names of TokenMaker classes is stored.
| Field Summary |
|---|
| Fields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerFactory |
|---|
PROPERTY_DEFAULT_TOKEN_MAKER_FACTORY |
| Constructor Summary | |
|---|---|
protected |
AbstractTokenMakerFactory()
Constructor. |
| Method Summary | |
|---|---|
protected TokenMaker |
getTokenMakerImpl(String key)
Returns a TokenMaker for the specified key. |
protected abstract void |
initTokenMakerMap()
Populates the mapping from keys to instances of TokenMakerCreators. |
Set<String> |
keySet()
Returns the set of keys that this factory maps to token makers. |
void |
putMapping(String key,
String className)
Adds a mapping from a key to a TokenMaker implementation
class name. |
void |
putMapping(String key,
String className,
ClassLoader cl)
Adds a mapping from a key to a TokenMaker implementation
class name. |
| Methods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerFactory |
|---|
getDefaultInstance, getTokenMaker, setDefaultInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractTokenMakerFactory()
| Method Detail |
|---|
protected TokenMaker getTokenMakerImpl(String key)
TokenMaker for the specified key.
getTokenMakerImpl in class TokenMakerFactorykey - The key.
TokenMaker, or null
if none matches the specified key.protected abstract void initTokenMakerMap()
TokenMakerCreators. Subclasses should override this method
and call one of the putMapping overloads to register
TokenMakers for syntax constants.
putMapping(String, String),
putMapping(String, String, ClassLoader)public Set<String> keySet()
keySet in class TokenMakerFactory
public void putMapping(String key,
String className)
TokenMaker implementation
class name.
key - The key.className - The TokenMaker class name.putMapping(String, String, ClassLoader)
public void putMapping(String key,
String className,
ClassLoader cl)
TokenMaker implementation
class name.
key - The key.className - The TokenMaker class name.cl - The class loader to use when loading the class.putMapping(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||