|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jidesoft.editor.language.LanguageSpec
public class LanguageSpec
LanguageSpec
defines the necessary properties for a language type. CodeEditor
will use the
information provided by this class.
Field Summary | |
---|---|
static String |
PROPERTY_BLOCK_COMMENT_END
|
static String |
PROPERTY_BLOCK_COMMENT_START
|
static String |
PROPERTY_LINE_COMMENT
|
static String |
PROPERTY_NONWORD_DELIMITERS
|
Constructor Summary | |
---|---|
LanguageSpec(String name,
String suffixes,
TokenMarker tokenMarker,
String noWordDelimiters,
String lineComment)
|
|
LanguageSpec(String name,
String suffixes,
TokenMarker tokenMarker,
String noWordDelimiters,
String lineComment,
String blockCommentStart,
String blockCommentEnd)
|
Method Summary | |
---|---|
void |
addSuffix(String suffix)
Adds a new suffix to this language. |
void |
addSuffixes(String[] suffixes)
Adds several new suffix to this language. |
void |
clearSuffixes()
Removes all suffixes from this language. |
void |
configureCodeEditor(CodeEditor codeEditor)
Configures the code editor to set the properties onto CodeEditor's Document as document properties. |
String |
getBlockCommentEnd()
Gets the end string for block comment. |
String |
getBlockCommentStart()
Gets the start string for block comment. |
Icon |
getIcon()
Gets the icon associated with this language. |
String |
getLineComment()
Gets string for the line comment. |
String |
getName()
Gets the name of this language. |
String |
getNonwordDelimiters()
Gets the characters that are not considered as a word delimiter. |
List<String> |
getSuffixes()
Gets the suffixes of this language. |
TokenMarker |
getTokenMarker()
Gets the token marker. |
void |
removeSuffix(String suffix)
Removes the suffix from this language. |
void |
setBlockCommentEnd(String blockCommentEnd)
Sets the end string for block comment. |
void |
setBlockCommentStart(String blockCommentStart)
Sets the start string for block comment. |
void |
setIcon(Icon icon)
Sets the icon associated with this language. |
void |
setLineComment(String lineComment)
Sets the string for the line comment. |
void |
setNonwordDelimiters(String nonwordDelimiters)
Sets the characters that are not considered as a word delimiter. |
void |
setTokenMarker(TokenMarker tokenMarker)
Sets the token marker. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_NONWORD_DELIMITERS
public static final String PROPERTY_LINE_COMMENT
public static final String PROPERTY_BLOCK_COMMENT_START
public static final String PROPERTY_BLOCK_COMMENT_END
Constructor Detail |
---|
public LanguageSpec(String name, String suffixes, TokenMarker tokenMarker, String noWordDelimiters, String lineComment)
name
- the name of the language, such as "Java", "C" etc.suffixes
- the suffix of file in the language, such as "java" for Java source code, "c" for C code.tokenMarker
- the token marker for the languagenoWordDelimiters
- the characters that are not considered as word delimiters. In most languages, "_" is the
value to use.lineComment
- the string that is used to create a line comment. Most language uses "//", such as Java,
C, JSP etc. Some use "#" such as Perl.public LanguageSpec(String name, String suffixes, TokenMarker tokenMarker, String noWordDelimiters, String lineComment, String blockCommentStart, String blockCommentEnd)
name
- the name of the language, such as "Java", "C" etc.suffixes
- the suffix of file in the language, such as "java" for Java source code, "c" for C
code.tokenMarker
- the token marker for the languagenoWordDelimiters
- delimiters that are not considered as the end of a word. In most languages, "_" is the
value to use.lineComment
- the string that is used to create a line comment. Most language uses "//", such as Java,
C, JSP etc. Some use "#" such as Perl.blockCommentStart
- the string that indicates the starting of a block comments. Most languages use "/*.blockCommentEnd
- the string that indicates the end of a block comments. Most languages use "/*.Method Detail |
---|
public String getName()
public List<String> getSuffixes()
public void addSuffix(String suffix)
suffix
- public void addSuffixes(String[] suffixes)
suffixes
- public void removeSuffix(String suffix)
suffix
- public void clearSuffixes()
public Icon getIcon()
public void setIcon(Icon icon)
icon
- public TokenMarker getTokenMarker()
public void setTokenMarker(TokenMarker tokenMarker)
tokenMarker
- public String getNonwordDelimiters()
public void setNonwordDelimiters(String nonwordDelimiters)
nonwordDelimiters
- setNonwordDelimiters(String)
public String getLineComment()
public void setLineComment(String lineComment)
lineComment
- the new string for the line comment.public String getBlockCommentStart()
public void setBlockCommentStart(String blockCommentStart)
blockCommentStart
- public String getBlockCommentEnd()
public void setBlockCommentEnd(String blockCommentEnd)
blockCommentEnd
- public void configureCodeEditor(CodeEditor codeEditor)
codeEditor
- public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |