Package | Description |
---|---|
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.model.syntax |
Interfaces for representing Java DOMs.
|
com.asakusafw.utils.java.model.util |
Utilities for Java DOM building/emitting.
|
Modifier and Type | Method and Description |
---|---|
SimpleName |
EmitContext.createVariableName(String hint)
Returns a variable name which is different to other property names.
|
SimpleName |
EmitContext.getFieldName(MemberDeclaration property)
Returns the corresponded property name.
|
SimpleName |
EmitContext.getOptionGetterName(PropertyDeclaration property)
Returns the corresponded option getter name.
|
SimpleName |
EmitContext.getOptionSetterName(PropertyDeclaration property)
Returns the corresponded option setter name.
|
SimpleName |
EmitContext.getReferenceGetterName(PropertyReferenceDeclaration reference)
Returns the corresponded reference getter name.
|
SimpleName |
EmitContext.getTypeName()
Returns the simple name of processing type.
|
SimpleName |
EmitContext.getTypeName(ModelSymbol model)
Returns the simple name of the target data model class.
|
SimpleName |
EmitContext.getValueGetterName(PropertyDeclaration property)
Returns the corresponded value getter name.
|
SimpleName |
EmitContext.getValueSetterName(PropertyDeclaration property)
Returns the corresponded value setter name.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleNameImpl
An implementation of
SimpleName . |
Modifier and Type | Method and Description |
---|---|
SimpleName |
LabeledStatementImpl.getLabel() |
SimpleName |
QualifiedNameImpl.getLastSegment() |
SimpleName |
SimpleNameImpl.getLastSegment() |
SimpleName |
DocMethodParameterImpl.getName() |
SimpleName |
DocFieldImpl.getName() |
SimpleName |
VariableDeclaratorImpl.getName() |
SimpleName |
FormalParameterDeclarationImpl.getName() |
SimpleName |
FieldAccessExpressionImpl.getName() |
SimpleName |
AnnotationElementDeclarationImpl.getName() |
SimpleName |
AnnotationElementImpl.getName() |
SimpleName |
MethodReferenceExpressionImpl.getName() |
SimpleName |
MethodDeclarationImpl.getName() |
SimpleName |
InterfaceDeclarationImpl.getName() |
SimpleName |
EnumDeclarationImpl.getName() |
SimpleName |
ClassDeclarationImpl.getName() |
SimpleName |
MethodInvocationExpressionImpl.getName() |
SimpleName |
ConstructorDeclarationImpl.getName() |
SimpleName |
AnnotationDeclarationImpl.getName() |
SimpleName |
EnumConstantDeclarationImpl.getName() |
SimpleName |
TypeParameterDeclarationImpl.getName() |
SimpleName |
DocMethodImpl.getName() |
SimpleName |
QualifiedNameImpl.getSimpleName() |
SimpleName |
QualifiedTypeImpl.getSimpleName() |
SimpleName |
BreakStatementImpl.getTarget() |
SimpleName |
ContinueStatementImpl.getTarget() |
SimpleName |
ModelFactoryImpl.newSimpleName(String string) |
Modifier and Type | Method and Description |
---|---|
List<SimpleName> |
QualifiedNameImpl.toNameList() |
List<SimpleName> |
SimpleNameImpl.toNameList() |
Modifier and Type | Method and Description |
---|---|
AnnotationDeclaration |
ModelFactoryImpl.newAnnotationDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
AnnotationElement |
ModelFactoryImpl.newAnnotationElement(SimpleName name,
Expression expression) |
AnnotationElementDeclaration |
ModelFactoryImpl.newAnnotationElementDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
SimpleName name,
Expression defaultExpression) |
BreakStatement |
ModelFactoryImpl.newBreakStatement(SimpleName target) |
ClassDeclaration |
ModelFactoryImpl.newClassDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends TypeParameterDeclaration> typeParameters,
Type superClass,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
ClassDeclaration |
ModelFactoryImpl.newClassDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
Type superClass,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
ConstructorDeclaration |
ModelFactoryImpl.newConstructorDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
List<? extends TypeParameterDeclaration> typeParameters,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Type> exceptionTypes,
Block body) |
ConstructorDeclaration |
ModelFactoryImpl.newConstructorDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Statement> statements) |
ContinueStatement |
ModelFactoryImpl.newContinueStatement(SimpleName target) |
DocField |
ModelFactoryImpl.newDocField(Type type,
SimpleName name) |
DocMethod |
ModelFactoryImpl.newDocMethod(Type type,
SimpleName name,
List<? extends DocMethodParameter> formalParameters) |
DocMethodParameter |
ModelFactoryImpl.newDocMethodParameter(Type type,
SimpleName name,
boolean variableArity) |
EnumConstantDeclaration |
ModelFactoryImpl.newEnumConstantDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends Expression> arguments,
ClassBody body) |
EnumConstantDeclaration |
ModelFactoryImpl.newEnumConstantDeclaration(Javadoc javadoc,
SimpleName name,
Expression... arguments) |
EnumDeclaration |
ModelFactoryImpl.newEnumDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends EnumConstantDeclaration> constantDeclarations,
TypeBodyDeclaration... bodyDeclarations) |
EnumDeclaration |
ModelFactoryImpl.newEnumDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends Type> superInterfaceTypes,
List<? extends EnumConstantDeclaration> constantDeclarations,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
FieldAccessExpression |
ModelFactoryImpl.newFieldAccessExpression(Expression qualifier,
SimpleName name) |
FieldDeclaration |
ModelFactoryImpl.newFieldDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
SimpleName name,
Expression initializer) |
FormalParameterDeclaration |
ModelFactoryImpl.newFormalParameterDeclaration(List<? extends Attribute> modifiers,
Type type,
boolean variableArity,
SimpleName name,
int extraDimensions) |
InterfaceDeclaration |
ModelFactoryImpl.newInterfaceDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
InterfaceDeclaration |
ModelFactoryImpl.newInterfaceDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends TypeParameterDeclaration> typeParameters,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
LabeledStatement |
ModelFactoryImpl.newLabeledStatement(SimpleName label,
Statement body) |
LocalVariableDeclaration |
ModelFactoryImpl.newLocalVariableDeclaration(Type type,
SimpleName name,
Expression initializer) |
MethodDeclaration |
ModelFactoryImpl.newMethodDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
List<? extends TypeParameterDeclaration> typeParameters,
Type returnType,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
int extraDimensions,
List<? extends Type> exceptionTypes,
Block body) |
MethodDeclaration |
ModelFactoryImpl.newMethodDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type returnType,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Statement> statements) |
MethodInvocationExpression |
ModelFactoryImpl.newMethodInvocationExpression(Expression qualifier,
List<? extends Type> typeArguments,
SimpleName name,
List<? extends Expression> arguments) |
MethodInvocationExpression |
ModelFactoryImpl.newMethodInvocationExpression(Expression qualifier,
SimpleName name,
Expression... arguments) |
MethodInvocationExpression |
ModelFactoryImpl.newMethodInvocationExpression(Expression qualifier,
SimpleName name,
List<? extends Expression> arguments) |
MethodReferenceExpressionImpl |
ModelFactoryImpl.newMethodReferenceExpression(TypeOrExpression qualifier,
List<? extends Type> typeArguments,
SimpleName name) |
QualifiedName |
ModelFactoryImpl.newQualifiedName(Name qualifier,
SimpleName simpleName) |
QualifiedType |
ModelFactoryImpl.newQualifiedType(Type qualifier,
SimpleName simpleName) |
TypeParameterDeclaration |
ModelFactoryImpl.newTypeParameterDeclaration(SimpleName name,
List<? extends Type> typeBounds) |
TypeParameterDeclaration |
ModelFactoryImpl.newTypeParameterDeclaration(SimpleName name,
Type... typeBounds) |
VariableDeclarator |
ModelFactoryImpl.newVariableDeclarator(SimpleName name,
int extraDimensions,
Expression initializer) |
void |
LabeledStatementImpl.setLabel(SimpleName label)
Sets the label name.
|
void |
DocMethodParameterImpl.setName(SimpleName name)
Sets the parameter name.
|
void |
DocFieldImpl.setName(SimpleName name)
Sets the field name.
|
void |
VariableDeclaratorImpl.setName(SimpleName name)
Sets the variable name.
|
void |
FormalParameterDeclarationImpl.setName(SimpleName name)
Sets the parameter name.
|
void |
FieldAccessExpressionImpl.setName(SimpleName name)
Sets the field name.
|
void |
AnnotationElementDeclarationImpl.setName(SimpleName name)
Sets annotation element name.
|
void |
AnnotationElementImpl.setName(SimpleName name)
Sets annotation element name.
|
void |
MethodReferenceExpressionImpl.setName(SimpleName name)
Sets the target method name.
|
void |
MethodDeclarationImpl.setName(SimpleName name)
Sets the method name.
|
void |
InterfaceDeclarationImpl.setName(SimpleName name)
Sets the simple type name.
|
void |
EnumDeclarationImpl.setName(SimpleName name)
Sets the simple type name.
|
void |
ClassDeclarationImpl.setName(SimpleName name)
Sets the simple type name.
|
void |
MethodInvocationExpressionImpl.setName(SimpleName name)
Sets the target method name.
|
void |
ConstructorDeclarationImpl.setName(SimpleName name)
Sets the constructor name.
|
void |
AnnotationDeclarationImpl.setName(SimpleName name)
Sets the simple type name.
|
void |
EnumConstantDeclarationImpl.setName(SimpleName name)
Sets the enum constant name.
|
void |
TypeParameterDeclarationImpl.setName(SimpleName name)
Sets the type variable name.
|
void |
DocMethodImpl.setName(SimpleName name)
Sets the target method or constructor name.
|
void |
QualifiedNameImpl.setSimpleName(SimpleName simpleName)
Sets the simple name on the tail.
|
void |
QualifiedTypeImpl.setSimpleName(SimpleName simpleName)
Sets the simple type name.
|
void |
BreakStatementImpl.setTarget(SimpleName target)
Sets the target label.
|
void |
ContinueStatementImpl.setTarget(SimpleName target)
Sets the target label.
|
Modifier and Type | Method and Description |
---|---|
Void |
ModelDigester.visitSimpleName(SimpleName elem,
com.asakusafw.utils.java.internal.model.util.DigestContext context) |
Boolean |
ModelMatcher.visitSimpleName(SimpleName elem,
Model context) |
Modifier and Type | Method and Description |
---|---|
SimpleName |
LabeledStatement.getLabel()
Returns the documentation blocks.
|
SimpleName |
Name.getLastSegment()
Returns the simple name of this name.
|
SimpleName |
MethodReferenceExpression.getName()
Returns the target method name.
|
SimpleName |
MethodInvocationExpression.getName()
Returns the target method name.
|
SimpleName |
VariableDeclarator.getName()
Returns the variable name.
|
SimpleName |
FieldAccessExpression.getName()
Returns the field name.
|
SimpleName |
EnumConstantDeclaration.getName()
Returns the enum constant name.
|
SimpleName |
DocMethod.getName()
Returns the target method or constructor name.
|
SimpleName |
DocMethodParameter.getName()
Returns the parameter name.
|
SimpleName |
DocField.getName()
Returns the field name.
|
SimpleName |
MethodOrConstructorDeclaration.getName()
Returns the target method or constructor name.
|
SimpleName |
TypeParameterDeclaration.getName()
Returns the type variable name.
|
SimpleName |
FormalParameterDeclaration.getName()
Returns the parameter name.
|
SimpleName |
AnnotationElementDeclaration.getName()
Returns the annotation element name.
|
SimpleName |
AnnotationElement.getName()
Returns the annotation element name.
|
SimpleName |
TypeDeclaration.getName()
Returns the simple type name.
|
SimpleName |
LambdaParameter.getName()
Returns the parameter name.
|
default SimpleName |
SimpleName.getName() |
SimpleName |
QualifiedType.getSimpleName()
Returns the simple type name.
|
SimpleName |
QualifiedName.getSimpleName()
Returns the simple name on the tail.
|
SimpleName |
BranchStatement.getTarget()
Returns the target label.
|
SimpleName |
ModelFactory.newSimpleName(String string)
Returns a new
SimpleName object. |
Modifier and Type | Method and Description |
---|---|
List<SimpleName> |
Name.toNameList()
Returns a simple name list of this name.
|
Modifier and Type | Method and Description |
---|---|
default CatchClause |
ModelFactory.newCatchClause(Type type,
SimpleName name,
Function<? super SimpleName,? extends Block> body)
Returns a new
CatchClause object. |
default LambdaExpression |
ModelFactory.newLambdaExpression(LambdaParameter parameter,
Function<? super SimpleName,? extends LambdaBody> lambda)
Returns a new
LambdaExpression object. |
default LambdaExpression |
ModelFactory.newLambdaExpression(List<? extends LambdaParameter> parameters,
Function<? super List<? extends SimpleName>,? extends LambdaBody> lambda)
Returns a new
LambdaExpression object. |
Modifier and Type | Method and Description |
---|---|
static List<SimpleName> |
Models.toList(Name name)
Returns a simple name list of the target name.
|
Modifier and Type | Method and Description |
---|---|
ExpressionBuilder |
ExpressionBuilder.field(SimpleName name)
Returns a field access expression which take the building expression as its owner object.
|
ExpressionBuilder |
TypeBuilder.field(SimpleName name)
Returns the field access expression.
|
JavadocBuilder |
JavadocBuilder.linkField(SimpleName name)
Appends a
@link inline block for the target field into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkField(SimpleName name)
Appends a
@link inline block for the target field into this builder. |
JavadocBuilder |
JavadocBuilder.linkField(Type type,
SimpleName name)
Appends a
@link inline block for the target field into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkField(Type type,
SimpleName name)
Appends a
@link inline block for the target field into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(SimpleName name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(SimpleName name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(SimpleName name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(SimpleName name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(Type type,
SimpleName name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
SimpleName name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(Type type,
SimpleName name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
SimpleName name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
ExpressionBuilder |
ExpressionBuilder.method(List<? extends Type> typeArguments,
SimpleName name,
Expression... arguments)
Returns the method invocation which take the building expression as its receiver object.
|
ExpressionBuilder |
TypeBuilder.method(List<? extends Type> typeArguments,
SimpleName name,
Expression... arguments)
Returns the method invocation using the building type as its qualifier.
|
ExpressionBuilder |
ExpressionBuilder.method(List<? extends Type> typeArguments,
SimpleName name,
List<? extends Expression> arguments)
Returns the method invocation which take the building expression as its receiver object.
|
ExpressionBuilder |
TypeBuilder.method(List<? extends Type> typeArguments,
SimpleName name,
List<? extends Expression> arguments)
Returns the method invocation using the building type as its qualifier.
|
ExpressionBuilder |
ExpressionBuilder.method(SimpleName name,
Expression... arguments)
Returns the method invocation which take the building expression as its receiver object.
|
ExpressionBuilder |
TypeBuilder.method(SimpleName name,
Expression... arguments)
Returns the method invocation using the building type as its qualifier.
|
ExpressionBuilder |
ExpressionBuilder.method(SimpleName name,
List<? extends Expression> arguments)
Returns the method invocation which take the building expression as its receiver object.
|
ExpressionBuilder |
TypeBuilder.method(SimpleName name,
List<? extends Expression> arguments)
Returns the method invocation using the building type as its qualifier.
|
ExpressionBuilder |
ExpressionBuilder.methodReference(List<? extends Type> typeArguments,
SimpleName name)
Returns the method invocation using the building expression as its qualifier.
|
ExpressionBuilder |
TypeBuilder.methodReference(List<? extends Type> typeArguments,
SimpleName name)
Returns the method invocation using the building type as its qualifier.
|
ExpressionBuilder |
ExpressionBuilder.methodReference(SimpleName name)
Returns the method reference using the building expression as its qualifier.
|
ExpressionBuilder |
TypeBuilder.methodReference(SimpleName name)
Returns the method reference using the building type as its qualifier.
|
JavadocBuilder |
JavadocBuilder.param(SimpleName name)
Starts a
@param tag block for the target parameter in this builder. |
JavadocBuilder |
JavadocBuilder.seeField(SimpleName name)
Starts a
@see tag block for the target field in this builder. |
JavadocBuilder |
JavadocBuilder.seeField(Type type,
SimpleName name)
Starts a
@see tag block for the target field in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(SimpleName name,
List<? extends Type> parameterTypes)
Starts a
@see tag block for the target method in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(SimpleName name,
Type... parameterTypes)
Starts a
@see tag block for the target method in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(Type type,
SimpleName name,
List<? extends Type> parameterTypes)
Starts
@see tag block about the specified element in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(Type type,
SimpleName name,
Type... parameterTypes)
Starts
@see tag block about the specified element in this builder. |
LocalVariableDeclaration |
ExpressionBuilder.toLocalVariableDeclaration(Type type,
SimpleName name)
Returns a local variable declaration which is initialized by the built expression.
|
JavadocBuilder |
JavadocBuilder.typeParam(SimpleName name)
Starts a
@param tag block for the target type parameter in this builder. |
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.