|
|||||||||
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 Map |
createTokenMakerKeyToClassNameMap()
Creates and returns a mapping from keys to the names of TokenMaker implementation classes. |
protected TokenMaker |
getTokenMakerImpl(String key)
Returns a TokenMaker for the specified key. |
Set |
keySet()
Returns the set of keys that this factory maps to token makers. |
String |
putMapping(String key,
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 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 TokenMakerFactory
protected TokenMaker getTokenMakerImpl(String key)
TokenMaker
for the specified key.
getTokenMakerImpl
in class TokenMakerFactory
key
- The key.
TokenMaker
, or null
if none matches the specified key.public Set keySet()
keySet
in class TokenMakerFactory
public String putMapping(String key, 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 |