Package | Description |
---|---|
com.asakusafw.dmdl.java |
Core classes of DMDL Java backend.
|
com.asakusafw.dmdl.java.emitter |
Java source code emitters.
|
com.asakusafw.utils.java.internal.model.syntax |
Naive Java DOM implementations.
|
com.asakusafw.utils.java.internal.model.util |
Internal utlities for Java DOM building/emitting.
|
com.asakusafw.utils.java.jsr269.bridge |
Utilities for convert
javax.lang.model into Java DOM. |
com.asakusafw.utils.java.model.util |
Utilities for Java DOM building/emitting.
|
com.asakusafw.utils.java.parser.javadoc |
Parses Java documentation comments and converts them to Java DOMs.
|
Modifier and Type | Method and Description |
---|---|
ModelFactory |
Configuration.getFactory()
Returns Java DOM element factory.
|
Constructor and Description |
---|
Configuration(ModelFactory factory,
DmdlSourceRepository source,
Name basePackage,
Emitter output,
ClassLoader serviceClassLoader,
Locale locale)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
ModelFactory |
EmitContext.getModelFactory()
Returns Java DOM factory in use.
|
Modifier and Type | Class and Description |
---|---|
class |
ModelFactoryImpl
An implementation of
ModelFactory . |
Modifier and Type | Method and Description |
---|---|
protected Type |
ReflectionTypeMapper.visitClass(Class<?> type,
ModelFactory context) |
protected Type |
ReflectionTypeMapper.visitGenericArrayType(GenericArrayType type,
ModelFactory context) |
protected Type |
ReflectionTypeMapper.visitParameterizedType(ParameterizedType type,
ModelFactory context) |
protected Type |
ReflectionTypeMapper.visitTypeVariable(TypeVariable<?> type,
ModelFactory context) |
protected Type |
ReflectionTypeMapper.visitWildcardType(WildcardType type,
ModelFactory context) |
Constructor and Description |
---|
Jsr269(ModelFactory factory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static ModelFactory |
Models.getModelFactory()
Returns a basic Java DOM factory.
|
Modifier and Type | Method and Description |
---|---|
static Name |
Models.append(ModelFactory factory,
Name... names)
Concatenates each name and returns it.
|
static Name |
Models.append(ModelFactory factory,
Name prefix,
String rest)
Returns a new name which is concatenated the prefix name with the suffix name string.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
boolean[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
byte[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
char[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
double[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
float[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
int[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
long[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
short[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
String[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ArrayInitializer |
Models.toArrayInitializer(ModelFactory factory,
Type[] array)
Returns an array initializer which contains the original elements as related Java expression.
|
static ClassLiteral |
Models.toClassLiteral(ModelFactory factory,
Type type)
Returns a type literal of the target type.
|
static Literal |
Models.toLiteral(ModelFactory factory,
boolean value)
Returns a Java literal of the target value.
|
static Expression |
Models.toLiteral(ModelFactory factory,
byte value)
Returns a Java literal (with cast operation) of the target value.
|
static Literal |
Models.toLiteral(ModelFactory factory,
char value)
Returns a Java literal of the target value.
|
static Literal |
Models.toLiteral(ModelFactory factory,
double value)
Returns a Java literal of the target value.
|
static Literal |
Models.toLiteral(ModelFactory factory,
float value)
Returns a Java literal of the target value.
|
static Literal |
Models.toLiteral(ModelFactory factory,
int value)
Returns a Java literal of the target value.
|
static Literal |
Models.toLiteral(ModelFactory factory,
long value)
Returns a Java literal of the target value.
|
static Expression |
Models.toLiteral(ModelFactory factory,
Object value)
Returns a Java literal of the target value.
|
static Expression |
Models.toLiteral(ModelFactory factory,
short value)
Returns a Java literal (with cast operation) of the target value.
|
static Literal |
Models.toLiteral(ModelFactory factory,
String value)
Returns a Java literal of the target value.
|
static Name |
Models.toName(ModelFactory factory,
Enum<?> constant)
Returns the fully qualified name of the target enum constant.
|
static Name |
Models.toName(ModelFactory factory,
String nameString)
Returns a name from the name string.
|
static Literal |
Models.toNullLiteral(ModelFactory factory)
Returns a
null literal. |
static Type |
Models.toType(ModelFactory factory,
Type type)
Returns a Java DOM object from the Java reflective object.
|
Constructor and Description |
---|
AttributeBuilder(ModelFactory factory)
Creates a new instance.
|
ExpressionBuilder(ModelFactory factory,
Expression context)
Creates a new instance.
|
ImportBuilder(ModelFactory factory,
PackageDeclaration packageDecl,
ImportBuilder.Strategy strategy)
Creates a new instance.
|
JavadocBuilder(ModelFactory factory)
Creates a new instance.
|
TypeBuilder(ModelFactory factory,
Type context)
Creates a new instance.
|
Constructor and Description |
---|
JavadocConverter(ModelFactory factory)
Creates a new instance.
|
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.