public class NativeLanguageFactory extends AbstractRuleExecutionSetFactory
Modifier and Type | Field and Description |
---|---|
static String |
MRULES_DSL_GRAMMAR_ID |
Constructor and Description |
---|
NativeLanguageFactory() |
NativeLanguageFactory(CompilationLevel compilationLevel) |
NativeLanguageFactory(ICompilationContext compilationContext) |
NativeLanguageFactory(Locale locale) |
NativeLanguageFactory(Locale locale,
CompilationLevel compilationLevel) |
NativeLanguageFactory(Locale locale,
ICompilationContext compilationContext) |
Modifier and Type | Method and Description |
---|---|
Set<ParsingContext.AutoCompleteResult> |
autoComplete(InputStream is,
int autoCompleteIndex) |
Set<ParsingContext.AutoCompleteResult> |
autoComplete(Reader r,
int autoCompleteIndex) |
Locale |
getLocale() |
static void |
load()
Intitializes the grammar repository if necessary to load the mrules dsl grammar.
|
IMRuleExecutionSet |
read(InputStream is)
Reads IMRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Object ruleExecutionSetAst)
Reads IMRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Reader r)
Reads IMRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Serializable ruleExecutionSetAst)
Reads IMRuleExecutionSet configuration
|
void |
validate(InputStream is)
Validate the syntax
|
void |
validate(Reader r)
Validate the syntax
|
void |
write(OutputStream os,
IMRuleExecutionSet rule)
Writes IMRuleExecutionSet configuration with default charset
|
void |
write(OutputStream os,
IMRuleExecutionSet rule,
String charset)
Writes IMRuleExecutionSet configuration with provider charset
|
void |
write(Writer w,
IMRuleExecutionSet rule)
Writes IMRuleExecutionSet configuration
|
compile, getCacheActivationResolver, getCompilationContext, getCompilationLevel, isForceCompilationLevel, isOptimizationEnabled, setCacheActivationResolver, setCompilationContext, setCompilationLevel, setForceCompilationLevel, setOptimizationEnabled
public static final String MRULES_DSL_GRAMMAR_ID
public NativeLanguageFactory()
public NativeLanguageFactory(CompilationLevel compilationLevel)
public NativeLanguageFactory(ICompilationContext compilationContext)
public NativeLanguageFactory(Locale locale)
public NativeLanguageFactory(Locale locale, CompilationLevel compilationLevel)
public NativeLanguageFactory(Locale locale, ICompilationContext compilationContext)
public static void load()
public IMRuleExecutionSet read(InputStream is) throws MConfigurationException
IRuleExecutionSetFactory
MConfigurationException
public IMRuleExecutionSet read(Reader r) throws MConfigurationException
IRuleExecutionSetFactory
MConfigurationException
public void validate(InputStream is) throws DslException
DslException
public void validate(Reader r) throws DslException
DslException
public Set<ParsingContext.AutoCompleteResult> autoComplete(InputStream is, int autoCompleteIndex) throws DslException
DslException
public Set<ParsingContext.AutoCompleteResult> autoComplete(Reader r, int autoCompleteIndex) throws DslException
DslException
public IMRuleExecutionSet read(Object ruleExecutionSetAst) throws MConfigurationException
IRuleExecutionSetFactory
MConfigurationException
public IMRuleExecutionSet read(Serializable ruleExecutionSetAst) throws MConfigurationException
IRuleExecutionSetFactory
MConfigurationException
public void write(Writer w, IMRuleExecutionSet rule) throws MConfigurationException, IOException
IRuleExecutionSetFactory
MConfigurationException
IOException
public void write(OutputStream os, IMRuleExecutionSet rule) throws MConfigurationException, IOException
IRuleExecutionSetFactory
MConfigurationException
IOException
public void write(OutputStream os, IMRuleExecutionSet rule, String charset) throws MConfigurationException, IOException
IRuleExecutionSetFactory
MConfigurationException
IOException
public Locale getLocale()