|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.editor.language.LanguageSpecManager
public class LanguageSpecManager
LanguageSpecManager
keeps a list of known LanguageSpec
. We registered several lanaguages on
it already. You can add more based on what you need. The languages we registered are Java, JSP, C, C++, HTML, XML,
PHP, Python, PLSQL, TSQL, Perl, VHDL and Verilog.
LanguageSpecManager
is a singleton. You use it by calling getInstance()
.
Constructor Summary | |
---|---|
protected |
LanguageSpecManager()
|
Method Summary | |
---|---|
static LanguageSpecManager |
getInstance()
|
LanguageSpec |
getLanguageSpec(String langName)
Gets the LanguageSpec that matches the specified name. |
LanguageSpec[] |
getLanguageSpecs()
Gets all LanguageSpec s registered on this manager. |
protected void |
initDefaultLanguageSpecs()
|
void |
registerLanguageSpec(LanguageSpec spec)
Registers a new LanguageSpec . |
void |
unregisterLanguageSpec(String langName)
Unregisters a LanguageSpec . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LanguageSpecManager()
Method Detail |
---|
public static LanguageSpecManager getInstance()
protected void initDefaultLanguageSpecs()
public LanguageSpec getLanguageSpec(String langName)
LanguageSpec
that matches the specified name.
langName
- the language name.
LanguageSpec
that matches the specified name. Null if it is not found or the langName
parameter is null.public LanguageSpec[] getLanguageSpecs()
LanguageSpec
s registered on this manager.
LanguageSpec
s registered on this manager.public void registerLanguageSpec(LanguageSpec spec)
LanguageSpec
. Please note, if the new LanguageSpec has the same name as one of the
existing LanguageSpec, the new one will override the old one.
spec
- the LanguageSpec to be registered.public void unregisterLanguageSpec(String langName)
LanguageSpec
.
langName
- the language name
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |