|
||||||||||
| 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
java.util.Map maps keys to the names of TokenMaker
classes.
| Field Summary |
|---|
| Fields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerFactory |
|---|
PROPERTY_DEFAULT_TOKEN_MAKER_FACTORY |
| Constructor Summary | |
|---|---|
protected |
AbstractTokenMakerFactory()
Constructor. |
| Method Summary | |
|---|---|
protected abstract java.util.Map |
createTokenMakerKeyToClassNameMap()
Creates and returns a mapping from keys to the names of TokenMaker implementation classes. |
protected TokenMaker |
getTokenMakerImpl(java.lang.String key)
Returns a TokenMaker for the specified key. |
java.util.Set |
keySet()
Returns the set of keys that this factory maps to token makers. |
java.lang.String |
putMapping(java.lang.String key,
java.lang.String className)
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 abstract java.util.Map createTokenMakerKeyToClassNameMap()
TokenMaker implementation classes. When
TokenMakerFactory.getTokenMaker(String) is called with a key defined in this
map, a TokenMaker of the corresponding type is returned.
createTokenMakerKeyToClassNameMap in class TokenMakerFactoryprotected TokenMaker getTokenMakerImpl(java.lang.String key)
TokenMaker for the specified key.
getTokenMakerImpl in class TokenMakerFactorykey - The key.
TokenMaker, or null
if none matches the specified key.public java.util.Set keySet()
keySet in class TokenMakerFactory
public java.lang.String putMapping(java.lang.String key,
java.lang.String className)
TokenMaker implementation
class name.
key - The key.className - The TokenMaker class name.
null
if there was none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||