Skip to content

LanguageExtension.ExtMatch ​

com.jsmacrosce.jsmacros.core.extensions.LanguageExtension.ExtMatch

Categorizes an extension's match for a file. A name match takes precedence over ordinary matches when the loader chooses among matching providers.

js
const ExtMatch = Java.type("com.jsmacrosce.jsmacros.core.extensions.LanguageExtension$ExtMatch");  
Chat.log(ExtMatch.MATCH_WITH_NAME.isMatch());

Nested type declared in LanguageExtension.

Fields ​

MATCH ​

static MATCH: LanguageExtension.ExtMatchread-only#
The extension matches the file.

MATCH_WITH_NAME ​

static MATCH_WITH_NAME: LanguageExtension.ExtMatchread-only#
The extension matches the file by language name.

NOT_MATCH ​

static NOT_MATCH: LanguageExtension.ExtMatchread-only#
The extension does not match the file.

Methods ​

isMatch ​

isMatch(): boolean#
Returns whether this category represents a match.
Returns: false for NOT_MATCH; true for either match category

valueOf ​

values ​