public class EscapeSettings extends Object
Constructor and Description |
---|
EscapeSettings() |
Modifier and Type | Method and Description |
---|---|
static EscapeSettings |
consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
EscapeSettings . |
Value<Character> |
getCharacter()
Returns the escape character.
|
Value<Boolean> |
getEscapeLineSeparator()
Returns whether or not line separators can be escaped.
|
MapValue<Character,Character> |
getSequences()
Returns the escape sequence map.
|
boolean |
verify(DmdlSemantics environment,
AstAttribute attribute)
Verifies this settings.
|
public Value<Character> getCharacter()
public MapValue<Character,Character> getSequences()
public Value<Boolean> getEscapeLineSeparator()
true
if enabled, otherwise false
public static EscapeSettings consume(DmdlSemantics environment, AstAttribute attribute, Map<String,AstAttributeElement> elements)
EscapeSettings
.environment
- the current environmentattribute
- the attributeelements
- the element map to be consumedEscapeSettings
.public boolean verify(DmdlSemantics environment, AstAttribute attribute)
environment
- the current environmentattribute
- the original attributetrue
if the settings seems valid, otherwise false
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.