Package | Description |
---|---|
com.asakusafw.dmdl.directio.json.driver |
JSON support for Direct I/O.
|
com.asakusafw.dmdl.directio.text |
Formatted text support for Direct I/O.
|
com.asakusafw.dmdl.directio.util |
Utilities for DMDL for Direct I/O.
|
com.asakusafw.dmdl.model |
Syntactic models for DMDL.
|
com.asakusafw.dmdl.util |
Internal common libraries for DMDL.
|
Modifier and Type | Method and Description |
---|---|
static JsonFormatSettings |
JsonFormatSettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about format settings.
|
static JsonPropertySettings |
JsonPropertySettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about property settings.
|
static JsonStreamSettings |
JsonStreamSettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about I/O stream settings.
|
Modifier and Type | Method and Description |
---|---|
static EscapeSettings |
EscapeSettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
EscapeSettings . |
static QuoteSettings |
QuoteSettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
QuoteSettings . |
static TextFieldSettings |
TextFieldSettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
EscapeSettings . |
static TextFormatSettings |
TextFormatSettings.consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
EscapeSettings . |
Modifier and Type | Method and Description |
---|---|
AstAttributeElement |
MapValue.getDeclaration()
Returns the declaration.
|
AstAttributeElement |
Value.getDeclaration()
Returns the declaration.
|
Modifier and Type | Method and Description |
---|---|
void |
AttributeAnalyzer.error(AstAttributeElement element,
AstAttributeValueMap.Entry entry,
String message,
Object... arguments)
Reports an error.
|
void |
AttributeAnalyzer.error(AstAttributeElement element,
String message,
Object... arguments)
Reports an error.
|
static <T> Value<T> |
Value.of(AstAttributeElement declaration,
T entity)
Returns a new value.
|
Value<Boolean> |
AttributeAnalyzer.toBoolean(AstAttributeElement element)
Analyze the given element as a boolean value.
|
Value<Character> |
AttributeAnalyzer.toCharacter(AstAttributeElement element)
Analyze the given element as a character value.
|
MapValue<Character,Character> |
AttributeAnalyzer.toCharacterMapWithNullValue(AstAttributeElement element)
Analyze the given element as a character map.
|
Value<Charset> |
AttributeAnalyzer.toCharset(AstAttributeElement element)
Analyze the given element as a character set.
|
Value<ClassName> |
AttributeAnalyzer.toClassName(AstAttributeElement element)
Analyze the given element as a class name.
|
Value<ClassName> |
AttributeAnalyzer.toClassName(AstAttributeElement element,
Function<String,Optional<String>> resolver)
Analyze the given element as a class name.
|
Value<DatePattern> |
AttributeAnalyzer.toDatePattern(AstAttributeElement element)
Analyze the given element as a date format.
|
Value<DecimalPattern> |
AttributeAnalyzer.toDecimalPatternWithNull(AstAttributeElement element)
Analyze the given element as a decimal format.
|
<T extends Enum<T>> |
AttributeAnalyzer.toEnumConstant(AstAttributeElement element,
Class<T> type)
Analyze the given element as an enum constant.
|
Value<String> |
AttributeAnalyzer.toString(AstAttributeElement element)
Analyze the given element as a string value.
|
Value<String> |
AttributeAnalyzer.toStringWithNull(AstAttributeElement element)
Analyze the given element as a nullable string value.
|
Value<ZoneId> |
AttributeAnalyzer.toZoneIdWithNull(AstAttributeElement element)
Analyze the given element as a time-zone ID.
|
void |
AttributeAnalyzer.warn(AstAttributeElement element,
AstAttributeValueMap.Entry entry,
String message,
Object... arguments)
Reports a warning.
|
void |
AttributeAnalyzer.warn(AstAttributeElement element,
String message,
Object... arguments)
Reports a warning.
|
Constructor and Description |
---|
MapValue(AstAttributeElement declaration)
Creates a new instance.
|
Modifier and Type | Field and Description |
---|---|
List<AstAttributeElement> |
AstAttribute.elements
Sub elements of this attribute.
|
Modifier and Type | Method and Description |
---|---|
R |
AstNode.Visitor.visitAttributeElement(C context,
AstAttributeElement node)
Called back from
AstAttributeElement . |
R |
AstNode.AbstractVisitor.visitAttributeElement(C context,
AstAttributeElement node) |
Constructor and Description |
---|
AstAttribute(Region region,
AstName name,
AstAttributeElement... elements)
Creates and returns a new instance.
|
Constructor and Description |
---|
AstAttribute(Region region,
AstName name,
List<AstAttributeElement> elements)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,AstAttributeElement> |
AttributeUtil.getElementMap(AstAttribute attribute)
Extract the attributes into (name, element) pairs.
|
Modifier and Type | Method and Description |
---|---|
static List<Diagnostic> |
AttributeUtil.reportInvalidElements(AstAttribute attribute,
Collection<? extends AstAttributeElement> elements)
Returns erroneous diagnostics for the undefined
attribut elements . |
static AstLiteral |
AttributeUtil.takeLiteral(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements,
String elementName,
LiteralKind literalKind,
boolean mandatory)
Removes
AstAttributeElement from elements and extracts string value from it. |
static String |
AttributeUtil.takeString(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements,
String elementName,
boolean mandatory)
Removes
AstAttributeElement from elements and extracts string value from it. |
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.