Package | Description |
---|---|
com.asakusafw.dmdl.directio.text |
Formatted text support for Direct I/O.
|
com.asakusafw.dmdl.java.emitter |
Java source code emitters.
|
com.asakusafw.dmdl.java.emitter.driver |
Extension points for DMDL Java emitter.
|
com.asakusafw.dmdl.java.spi |
Extension points for DMDL Java program emittion.
|
com.asakusafw.operator.util |
Common utilities for Asakusa Operator DSL compiler.
|
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.syntax |
Interfaces for representing Java DOMs.
|
com.asakusafw.utils.java.model.util |
Utilities for Java DOM building/emitting.
|
Modifier and Type | Method and Description |
---|---|
protected Type |
AbstractTextStreamFormatGenerator.resolve(ClassName type)
Resolves a value.
|
Modifier and Type | Method and Description |
---|---|
Type |
EmitContext.getContainerType(PropertyReferenceDeclaration reference)
Returns the collection type of target reference.
|
Type |
EmitContext.getElementType(PropertyReferenceDeclaration reference)
Returns the element type of target reference.
|
Type |
EmitContext.getFieldType(PropertyDeclaration property)
Returns the corresponded property data type.
|
Type |
EmitContext.getValueType(PropertyDeclaration property)
Returns the corresponded property value type.
|
Type |
EmitContext.resolve(ModelSymbol model)
Resolves the model symbol to the corresponded Java DOM type symbol.
|
Type |
EmitContext.resolve(Name name)
Resolves the qualified type name to the corresponded type symbol.
|
Type |
EmitContext.resolve(Type type)
Resolves the runtime type to the corresponded Java DOM type symbol.
|
Type |
EmitContext.resolve(Type type)
Resolves the Java DOM type to imported type representation.
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
CompositeDataModelDriver.getInterfaces(EmitContext context,
ModelDeclaration model) |
Modifier and Type | Method and Description |
---|---|
Type |
EmitContext.resolve(Type type)
Resolves the Java DOM type to imported type representation.
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
WritableDriver.getInterfaces(EmitContext context,
ModelDeclaration model) |
List<Type> |
ProjectionDriver.getInterfaces(EmitContext context,
ModelDeclaration model) |
Modifier and Type | Method and Description |
---|---|
List<Type> |
JavaDataModelDriver.getInterfaces(EmitContext context,
ModelDeclaration model)
Returns the interface types to implement to the model.
|
Modifier and Type | Method and Description |
---|---|
static Type |
DescriptionHelper.resolve(ImportBuilder importer,
TypeDescription type)
Returns the resolved type.
|
static Type |
ElementHelper.toParameterizedType(CompileEnvironment environment,
List<? extends TypeParameterElement> typeParameters,
Type rawNodeType,
ImportBuilder imports)
Creates a parameterized about operator element.
|
Modifier and Type | Method and Description |
---|---|
static Type |
ElementHelper.toParameterizedType(CompileEnvironment environment,
List<? extends TypeParameterElement> typeParameters,
Type rawNodeType,
ImportBuilder imports)
Creates a parameterized about operator element.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayTypeImpl
An implementation of
ArrayType . |
class |
BasicTypeImpl
An implementation of
BasicType . |
class |
NamedTypeImpl
An implementation of
NamedType . |
class |
ParameterizedTypeImpl
An implementation of
ParameterizedType . |
class |
QualifiedTypeImpl
An implementation of
QualifiedType . |
class |
UnionTypeImpl
An implementation of
UnionType . |
class |
WildcardImpl
An implementation of
Wildcard . |
Modifier and Type | Method and Description |
---|---|
Type |
ArrayTypeImpl.getComponentType() |
Type |
QualifiedTypeImpl.getQualifier() |
Type |
ConstructorReferenceExpressionImpl.getQualifier() |
Type |
MethodDeclarationImpl.getReturnType() |
Type |
ClassDeclarationImpl.getSuperClass() |
Type |
CastExpressionImpl.getType() |
Type |
DocMethodParameterImpl.getType() |
Type |
DocFieldImpl.getType() |
Type |
InstanceofExpressionImpl.getType() |
Type |
FormalParameterDeclarationImpl.getType() |
Type |
AnnotationElementDeclarationImpl.getType() |
Type |
ParameterizedTypeImpl.getType() |
Type |
LocalVariableDeclarationImpl.getType() |
Type |
FieldDeclarationImpl.getType() |
Type |
ClassInstanceCreationExpressionImpl.getType() |
Type |
ClassLiteralImpl.getType() |
Type |
DocMethodImpl.getType() |
Type |
WildcardImpl.getTypeBound() |
Modifier and Type | Method and Description |
---|---|
List<? extends Type> |
UnionTypeImpl.getAlternativeTypes() |
List<? extends Type> |
MethodDeclarationImpl.getExceptionTypes() |
List<? extends Type> |
ConstructorDeclarationImpl.getExceptionTypes() |
List<? extends Type> |
InterfaceDeclarationImpl.getSuperInterfaceTypes() |
List<? extends Type> |
EnumDeclarationImpl.getSuperInterfaceTypes() |
List<? extends Type> |
ClassDeclarationImpl.getSuperInterfaceTypes() |
List<? extends Type> |
SuperConstructorInvocationImpl.getTypeArguments() |
List<? extends Type> |
ParameterizedTypeImpl.getTypeArguments() |
List<? extends Type> |
MethodReferenceExpressionImpl.getTypeArguments() |
List<? extends Type> |
ConstructorReferenceExpressionImpl.getTypeArguments() |
List<? extends Type> |
ClassInstanceCreationExpressionImpl.getTypeArguments() |
List<? extends Type> |
MethodInvocationExpressionImpl.getTypeArguments() |
List<? extends Type> |
AlternateConstructorInvocationImpl.getTypeArguments() |
List<? extends Type> |
TypeParameterDeclarationImpl.getTypeBounds() |
Modifier and Type | Method and Description |
---|---|
AnnotationElementDeclaration |
ModelFactoryImpl.newAnnotationElementDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
SimpleName name,
Expression defaultExpression) |
ArrayType |
ModelFactoryImpl.newArrayType(Type componentType) |
CastExpression |
ModelFactoryImpl.newCastExpression(Type type,
Expression expression) |
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) |
ClassInstanceCreationExpression |
ModelFactoryImpl.newClassInstanceCreationExpression(Expression qualifier,
List<? extends Type> typeArguments,
Type type,
List<? extends Expression> arguments,
ClassBody body) |
ClassInstanceCreationExpression |
ModelFactoryImpl.newClassInstanceCreationExpression(Type type,
Expression... arguments) |
ClassInstanceCreationExpression |
ModelFactoryImpl.newClassInstanceCreationExpression(Type type,
List<? extends Expression> arguments) |
ClassLiteral |
ModelFactoryImpl.newClassLiteral(Type type) |
ConstructorReferenceExpressionImpl |
ModelFactoryImpl.newConstructorReferenceExpression(Type qualifier,
List<? extends Type> typeArguments) |
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) |
FieldDeclaration |
ModelFactoryImpl.newFieldDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
List<? extends VariableDeclarator> variableDeclarators) |
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) |
InstanceofExpression |
ModelFactoryImpl.newInstanceofExpression(Expression expression,
Type type) |
LocalVariableDeclaration |
ModelFactoryImpl.newLocalVariableDeclaration(List<? extends Attribute> modifiers,
Type type,
List<? extends VariableDeclarator> variableDeclarators) |
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) |
ParameterizedType |
ModelFactoryImpl.newParameterizedType(Type type,
List<? extends Type> typeArguments) |
ParameterizedType |
ModelFactoryImpl.newParameterizedType(Type type,
Type... typeArguments) |
ParameterizedType |
ModelFactoryImpl.newParameterizedType(Type type,
Type... typeArguments) |
QualifiedType |
ModelFactoryImpl.newQualifiedType(Type qualifier,
SimpleName simpleName) |
TypeParameterDeclaration |
ModelFactoryImpl.newTypeParameterDeclaration(SimpleName name,
Type... typeBounds) |
UnionType |
ModelFactoryImpl.newUnionType(Type... alternativeTypes) |
Wildcard |
ModelFactoryImpl.newWildcard(WildcardBoundKind boundKind,
Type typeBound) |
void |
ArrayTypeImpl.setComponentType(Type componentType)
Sets the element type.
|
void |
QualifiedTypeImpl.setQualifier(Type qualifier)
Sets the type qualifier.
|
void |
ConstructorReferenceExpressionImpl.setQualifier(Type qualifier)
Sets the owner type.
|
void |
MethodDeclarationImpl.setReturnType(Type returnType)
Sets the return type.
|
void |
ClassDeclarationImpl.setSuperClass(Type superClass)
Sets the super class.
|
void |
CastExpressionImpl.setType(Type type)
Sets the target type.
|
void |
DocMethodParameterImpl.setType(Type type)
Sets the parameter type.
|
void |
DocFieldImpl.setType(Type type)
Sets the owner type.
|
void |
InstanceofExpressionImpl.setType(Type type)
Sets the target type.
|
void |
FormalParameterDeclarationImpl.setType(Type type)
Sets the variable type.
|
void |
AnnotationElementDeclarationImpl.setType(Type type)
Sets annotation element type.
|
void |
ParameterizedTypeImpl.setType(Type type)
Sets the non-parameterized type.
|
void |
LocalVariableDeclarationImpl.setType(Type type)
Sets the variable type.
|
void |
FieldDeclarationImpl.setType(Type type)
Sets the field type.
|
void |
ClassInstanceCreationExpressionImpl.setType(Type type)
Sets the target type.
|
void |
ClassLiteralImpl.setType(Type type)
Sets the target type.
|
void |
DocMethodImpl.setType(Type type)
Sets the owner type.
|
void |
WildcardImpl.setTypeBound(Type typeBound)
Sets the bound type.
|
Modifier and Type | Method and Description |
---|---|
AlternateConstructorInvocation |
ModelFactoryImpl.newAlternateConstructorInvocation(List<? extends Type> typeArguments,
List<? extends Expression> arguments) |
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) |
ClassInstanceCreationExpression |
ModelFactoryImpl.newClassInstanceCreationExpression(Expression qualifier,
List<? extends Type> typeArguments,
Type type,
List<? extends Expression> arguments,
ClassBody body) |
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) |
ConstructorReferenceExpressionImpl |
ModelFactoryImpl.newConstructorReferenceExpression(Type qualifier,
List<? extends Type> typeArguments) |
EnumDeclaration |
ModelFactoryImpl.newEnumDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends Type> superInterfaceTypes,
List<? extends EnumConstantDeclaration> constantDeclarations,
List<? extends TypeBodyDeclaration> bodyDeclarations) |
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) |
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) |
MethodInvocationExpression |
ModelFactoryImpl.newMethodInvocationExpression(Expression qualifier,
List<? extends Type> typeArguments,
SimpleName name,
List<? extends Expression> arguments) |
MethodReferenceExpressionImpl |
ModelFactoryImpl.newMethodReferenceExpression(TypeOrExpression qualifier,
List<? extends Type> typeArguments,
SimpleName name) |
ParameterizedType |
ModelFactoryImpl.newParameterizedType(Type type,
List<? extends Type> typeArguments) |
SuperConstructorInvocation |
ModelFactoryImpl.newSuperConstructorInvocation(Expression qualifier,
List<? extends Type> typeArguments,
List<? extends Expression> arguments) |
TypeParameterDeclaration |
ModelFactoryImpl.newTypeParameterDeclaration(SimpleName name,
List<? extends Type> typeBounds) |
UnionType |
ModelFactoryImpl.newUnionType(List<? extends Type> alternativeTypes) |
void |
UnionTypeImpl.setAlternativeTypes(List<? extends Type> alternativeTypes)
Sets the alternatives.
|
void |
MethodDeclarationImpl.setExceptionTypes(List<? extends Type> exceptionTypes)
Sets the exception types.
|
void |
ConstructorDeclarationImpl.setExceptionTypes(List<? extends Type> exceptionTypes)
Sets the exception types.
|
void |
InterfaceDeclarationImpl.setSuperInterfaceTypes(List<? extends Type> superInterfaceTypes)
Sets the super interface types.
|
void |
EnumDeclarationImpl.setSuperInterfaceTypes(List<? extends Type> superInterfaceTypes)
Sets the super interface types.
|
void |
ClassDeclarationImpl.setSuperInterfaceTypes(List<? extends Type> superInterfaceTypes)
Sets the super interface types.
|
void |
SuperConstructorInvocationImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
ParameterizedTypeImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
MethodReferenceExpressionImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
ConstructorReferenceExpressionImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
ClassInstanceCreationExpressionImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
MethodInvocationExpressionImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
AlternateConstructorInvocationImpl.setTypeArguments(List<? extends Type> typeArguments)
Sets the type arguments.
|
void |
TypeParameterDeclarationImpl.setTypeBounds(List<? extends Type> typeBounds)
Sets the bound types.
|
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) |
Modifier and Type | Method and Description |
---|---|
Type |
Jsr269.convert(DeclaredType type)
Converts the class, interface type, or its parameterized type.
|
Type |
Jsr269.convert(NoType type)
Converts the
void pseudo-type. |
Type |
Jsr269.convert(TypeMirror type)
Converts the type mirror.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ArrayType
An interface which represents array types.
|
interface |
BasicType
An interface which represents basic types.
|
interface |
NamedType
An interface which represents types which can be identified by their name.
|
interface |
ParameterizedType
An interface which represents parameterized types.
|
interface |
QualifiedType
An interface which represents qualified types.
|
interface |
UnionType
An interface which represents union types.
|
interface |
Wildcard
An interface which represents type wildcard.
|
Modifier and Type | Method and Description |
---|---|
Type |
ArrayType.getComponentType()
Returns the element type.
|
Type |
QualifiedType.getQualifier()
Returns the type qualifier.
|
Type |
ConstructorReferenceExpression.getQualifier()
Returns the owner type.
|
Type |
MethodDeclaration.getReturnType()
Returns the return type.
|
Type |
ClassDeclaration.getSuperClass()
Returns the super class.
|
Type |
ParameterizedType.getType()
Returns the non-parameterized type.
|
Type |
LocalVariableDeclaration.getType()
Returns the variable type.
|
Type |
InstanceofExpression.getType()
Returns the target type.
|
Type |
FieldDeclaration.getType()
Returns the field type.
|
Type |
DocMethod.getType()
Returns the owner type.
|
Type |
DocMethodParameter.getType()
Returns the parameter type.
|
Type |
DocField.getType()
Returns the owner type.
|
Type |
ClassLiteral.getType()
Returns the target type.
|
Type |
ClassInstanceCreationExpression.getType()
Returns the target type.
|
Type |
FormalParameterDeclaration.getType()
Returns the variable type.
|
Type |
CastExpression.getType()
Returns the target type.
|
Type |
AnnotationElementDeclaration.getType()
Returns the annotation element type.
|
Type |
Wildcard.getTypeBound()
Returns the bound type.
|
Modifier and Type | Method and Description |
---|---|
List<? extends Type> |
UnionType.getAlternativeTypes()
Returns the alternative types.
|
List<? extends Type> |
MethodOrConstructorDeclaration.getExceptionTypes()
Returns the exception types.
|
List<? extends Type> |
InterfaceDeclaration.getSuperInterfaceTypes()
Returns the super interface types.
|
List<? extends Type> |
EnumDeclaration.getSuperInterfaceTypes()
Returns the super interface types.
|
List<? extends Type> |
ClassDeclaration.getSuperInterfaceTypes()
Returns the super interface types.
|
List<? extends Type> |
ParameterizedType.getTypeArguments()
Returns the type arguments.
|
List<? extends Type> |
MethodOrConstructorReferenceExpression.getTypeArguments()
Returns the type arguments.
|
List<? extends Type> |
MethodInvocationExpression.getTypeArguments()
Returns the type arguments.
|
List<? extends Type> |
ClassInstanceCreationExpression.getTypeArguments()
Returns the type arguments.
|
List<? extends Type> |
ConstructorInvocation.getTypeArguments()
Returns the type arguments.
|
List<? extends Type> |
TypeParameterDeclaration.getTypeBounds()
Returns the bound types.
|
Modifier and Type | Method and Description |
---|---|
AnnotationElementDeclaration |
ModelFactory.newAnnotationElementDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
SimpleName name,
Expression defaultExpression)
Returns a new
AnnotationElementDeclaration object. |
ArrayType |
ModelFactory.newArrayType(Type componentType)
Returns a new
ArrayType object. |
CastExpression |
ModelFactory.newCastExpression(Type type,
Expression expression)
Returns a new
CastExpression object. |
default CatchClause |
ModelFactory.newCatchClause(Type type,
SimpleName name,
Function<? super SimpleName,? extends Block> body)
Returns a new
CatchClause object. |
ClassDeclaration |
ModelFactory.newClassDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends TypeParameterDeclaration> typeParameters,
Type superClass,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
ClassDeclaration object. |
ClassDeclaration |
ModelFactory.newClassDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
Type superClass,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
ClassDeclaration object. |
ClassInstanceCreationExpression |
ModelFactory.newClassInstanceCreationExpression(Expression qualifier,
List<? extends Type> typeArguments,
Type type,
List<? extends Expression> arguments,
ClassBody body)
Returns a new
ClassInstanceCreationExpression object. |
ClassInstanceCreationExpression |
ModelFactory.newClassInstanceCreationExpression(Type type,
Expression... arguments)
Returns a new
ClassInstanceCreationExpression object. |
ClassInstanceCreationExpression |
ModelFactory.newClassInstanceCreationExpression(Type type,
List<? extends Expression> arguments)
Returns a new
ClassInstanceCreationExpression object. |
ClassLiteral |
ModelFactory.newClassLiteral(Type type)
Returns a new
ClassLiteral object. |
default ConstructorReferenceExpression |
ModelFactory.newConstructorReferenceExpression(Type qualifier)
Returns a new
ConstructorReferenceExpression object. |
ConstructorReferenceExpression |
ModelFactory.newConstructorReferenceExpression(Type qualifier,
List<? extends Type> typeArguments)
Returns a new
ConstructorReferenceExpression object. |
DocField |
ModelFactory.newDocField(Type type,
SimpleName name)
Returns a new
DocField object. |
DocMethod |
ModelFactory.newDocMethod(Type type,
SimpleName name,
List<? extends DocMethodParameter> formalParameters)
Returns a new
DocMethod object. |
DocMethodParameter |
ModelFactory.newDocMethodParameter(Type type,
SimpleName name,
boolean variableArity)
Returns a new
DocMethodParameter object. |
default EnhancedForStatement |
ModelFactory.newEnhancedForStatement(Type type,
SimpleName name,
Expression expression,
Statement body)
Returns a new
EnhancedForStatement object. |
FieldDeclaration |
ModelFactory.newFieldDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
List<? extends VariableDeclarator> variableDeclarators)
Returns a new
FieldDeclaration object. |
FieldDeclaration |
ModelFactory.newFieldDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type type,
SimpleName name,
Expression initializer)
Returns a new
FieldDeclaration object. |
FormalParameterDeclaration |
ModelFactory.newFormalParameterDeclaration(List<? extends Attribute> modifiers,
Type type,
boolean variableArity,
SimpleName name,
int extraDimensions)
Returns a new
FormalParameterDeclaration object. |
default FormalParameterDeclaration |
ModelFactory.newFormalParameterDeclaration(Type type,
SimpleName name)
Returns a new
FormalParameterDeclaration object. |
InstanceofExpression |
ModelFactory.newInstanceofExpression(Expression expression,
Type type)
Returns a new
InstanceofExpression object. |
LocalVariableDeclaration |
ModelFactory.newLocalVariableDeclaration(List<? extends Attribute> modifiers,
Type type,
List<? extends VariableDeclarator> variableDeclarators)
Returns a new
LocalVariableDeclaration object. |
LocalVariableDeclaration |
ModelFactory.newLocalVariableDeclaration(Type type,
SimpleName name,
Expression initializer)
Returns a new
LocalVariableDeclaration object. |
MethodDeclaration |
ModelFactory.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)
Returns a new
MethodDeclaration object. |
MethodDeclaration |
ModelFactory.newMethodDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Type returnType,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Statement> statements)
Returns a new
MethodDeclaration object. |
ParameterizedType |
ModelFactory.newParameterizedType(Type type,
List<? extends Type> typeArguments)
Returns a new
ParameterizedType object. |
ParameterizedType |
ModelFactory.newParameterizedType(Type type,
Type... typeArguments)
Returns a new
ParameterizedType object. |
ParameterizedType |
ModelFactory.newParameterizedType(Type type,
Type... typeArguments)
Returns a new
ParameterizedType object. |
QualifiedType |
ModelFactory.newQualifiedType(Type qualifier,
SimpleName simpleName)
Returns a new
QualifiedType object. |
default TryResource |
ModelFactory.newTryResource(Type type,
SimpleName name,
Expression expression)
Returns a new
TryResource object. |
TypeParameterDeclaration |
ModelFactory.newTypeParameterDeclaration(SimpleName name,
Type... typeBounds)
Returns a new
TypeParameterDeclaration object. |
UnionType |
ModelFactory.newUnionType(Type... alternativeTypes)
Returns a new
UnionType object. |
Wildcard |
ModelFactory.newWildcard(WildcardBoundKind boundKind,
Type typeBound)
Returns a new
Wildcard object. |
default Wildcard |
ModelFactory.newWildcardExtends(Type typeBound)
Returns a new
Wildcard object with upper bound type. |
default Wildcard |
ModelFactory.newWildcardSuper(Type typeBound)
Returns a new
Wildcard object with lower bound type. |
Modifier and Type | Method and Description |
---|---|
AlternateConstructorInvocation |
ModelFactory.newAlternateConstructorInvocation(List<? extends Type> typeArguments,
List<? extends Expression> arguments)
Returns a new
AlternateConstructorInvocation object. |
ClassDeclaration |
ModelFactory.newClassDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends TypeParameterDeclaration> typeParameters,
Type superClass,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
ClassDeclaration object. |
ClassDeclaration |
ModelFactory.newClassDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
Type superClass,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
ClassDeclaration object. |
ClassInstanceCreationExpression |
ModelFactory.newClassInstanceCreationExpression(Expression qualifier,
List<? extends Type> typeArguments,
Type type,
List<? extends Expression> arguments,
ClassBody body)
Returns a new
ClassInstanceCreationExpression object. |
ConstructorDeclaration |
ModelFactory.newConstructorDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
List<? extends TypeParameterDeclaration> typeParameters,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Type> exceptionTypes,
Block body)
Returns a new
ConstructorDeclaration object. |
ConstructorReferenceExpression |
ModelFactory.newConstructorReferenceExpression(Type qualifier,
List<? extends Type> typeArguments)
Returns a new
ConstructorReferenceExpression object. |
EnumDeclaration |
ModelFactory.newEnumDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends Type> superInterfaceTypes,
List<? extends EnumConstantDeclaration> constantDeclarations,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
EnumDeclaration object. |
InterfaceDeclaration |
ModelFactory.newInterfaceDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
InterfaceDeclaration object. |
InterfaceDeclaration |
ModelFactory.newInterfaceDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
SimpleName name,
List<? extends TypeParameterDeclaration> typeParameters,
List<? extends Type> superInterfaceTypes,
List<? extends TypeBodyDeclaration> bodyDeclarations)
Returns a new
InterfaceDeclaration object. |
MethodDeclaration |
ModelFactory.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)
Returns a new
MethodDeclaration object. |
MethodInvocationExpression |
ModelFactory.newMethodInvocationExpression(Expression qualifier,
List<? extends Type> typeArguments,
SimpleName name,
List<? extends Expression> arguments)
Returns a new
MethodInvocationExpression object. |
MethodReferenceExpression |
ModelFactory.newMethodReferenceExpression(TypeOrExpression qualifier,
List<? extends Type> typeArguments,
SimpleName name)
Returns a new
MethodReferenceExpression object. |
ParameterizedType |
ModelFactory.newParameterizedType(Type type,
List<? extends Type> typeArguments)
Returns a new
ParameterizedType object. |
SuperConstructorInvocation |
ModelFactory.newSuperConstructorInvocation(Expression qualifier,
List<? extends Type> typeArguments,
List<? extends Expression> arguments)
Returns a new
SuperConstructorInvocation object. |
TypeParameterDeclaration |
ModelFactory.newTypeParameterDeclaration(SimpleName name,
List<? extends Type> typeBounds)
Returns a new
TypeParameterDeclaration object. |
UnionType |
ModelFactory.newUnionType(List<? extends Type> alternativeTypes)
Returns a new
UnionType object. |
Modifier and Type | Method and Description |
---|---|
Type |
ImportBuilder.resolve(Type type)
Resolves the target type and returns it as an imported type representation.
|
Type |
ImportBuilder.resolvePackageMember(Name name)
Resolves the type name as an package member of this current context.
|
Type |
TypeBuilder.toType()
Returns the built type.
|
static Type |
Models.toType(ModelFactory factory,
Type type)
Returns a Java DOM object from the Java reflective object.
|
Type |
ImportBuilder.toType(Name name)
Resolves the target type and returns it as an imported type representation.
|
Type |
ImportBuilder.toType(Type type)
Resolves the target type and returns it as an imported type representation.
|
Modifier and Type | Method and Description |
---|---|
AttributeBuilder |
AttributeBuilder.annotation(Type type)
Appends the annotation to the builder.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
Expression value)
Appends the single element annotation to the builder.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
Map<? extends String,? extends Expression> elements)
Adds the specified annotation.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
String elementName,
Expression elementValue)
Appends the annotation to the builder.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
String elementName1,
Expression elementValue1,
String elementName2,
Expression elementValue2)
Appends the annotation to the builder.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
String elementName1,
Expression elementValue1,
String elementName2,
Expression elementValue2,
String elementName3,
Expression elementValue3)
Appends the annotation to the builder.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
String elementName1,
Expression elementValue1,
String elementName2,
Expression elementValue2,
String elementName3,
Expression elementValue3,
String elementName4,
Expression elementValue4)
Appends the annotation to the builder.
|
AttributeBuilder |
AttributeBuilder.annotation(Type type,
String elementName1,
Expression elementValue1,
String elementName2,
Expression elementValue2,
String elementName3,
Expression elementValue3,
String elementName4,
Expression elementValue4,
String elementName5,
Expression elementValue5)
Appends the annotation to the builder.
|
ExpressionBuilder |
ExpressionBuilder.castTo(Type type)
Returns a cast expression.
|
JavadocBuilder |
JavadocBuilder.exception(Type type)
Starts a
@throws tag block for the target type in this builder. |
ExpressionBuilder |
ExpressionBuilder.instanceOf(Type type)
Returns an
instanceof expression. |
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.linkField(Type type,
String name)
Appends a
@link inline block for the target field into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkField(Type type,
String name)
Appends a
@link inline block for the target field 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(String name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(String 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. |
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. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
SimpleName name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(Type type,
String name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
String name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(Type type,
String name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkMethod(Type type,
String name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
String name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
String name,
Type... parameterTypes)
Appends a
@link inline block for the target method into this builder. |
JavadocBuilder |
JavadocBuilder.linkType(Type type)
Appends a
@link inline block for the target type into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkType(Type type)
Appends a
@link inline block for the target type into this builder. |
TypeBuilder |
TypeBuilder.parameterize(Type... typeArguments)
Returns the parameterized type.
|
Type |
ImportBuilder.resolve(Type type)
Resolves the target type and returns it as an imported type representation.
|
JavadocBuilder |
JavadocBuilder.seeField(Type type,
SimpleName name)
Starts a
@see tag block for the target field in this builder. |
JavadocBuilder |
JavadocBuilder.seeField(Type type,
String name)
Starts a
@see tag block for the target field 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(String 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. |
JavadocBuilder |
JavadocBuilder.seeMethod(Type type,
SimpleName name,
Type... parameterTypes)
Starts
@see tag block about the specified element in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(Type type,
String name,
List<? extends Type> parameterTypes)
Starts a
@see tag block for the target method in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(Type type,
String name,
Type... parameterTypes)
Starts a
@see tag block for the target method in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(Type type,
String name,
Type... parameterTypes)
Starts a
@see tag block for the target method in this builder. |
JavadocBuilder |
JavadocBuilder.seeType(Type type)
Starts a
@see tag block for the target type in this builder. |
LocalVariableDeclaration |
ExpressionBuilder.toLocalVariableDeclaration(Type type,
SimpleName name)
Returns a local variable declaration which is initialized by the built expression.
|
LocalVariableDeclaration |
ExpressionBuilder.toLocalVariableDeclaration(Type type,
String name)
Returns a local variable declaration which is initialized by the built expression.
|
JavadocBuilder |
JavadocBuilder.typeParam(Type typeVariable)
Starts a
@param tag block for the target type parameter in this builder. |
Modifier and Type | Method and Description |
---|---|
ExpressionBuilder |
TypeBuilder.constructorReference(List<? extends Type> typeArguments)
Returns the constructor invocation using the building type as its qualifier.
|
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(String name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(String name,
List<? extends 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,
String name,
List<? extends Type> parameterTypes)
Appends a
@link inline block for the target method into this builder. |
DocElement |
JavadocBuilder.DocElementFactory.linkMethod(Type type,
String name,
List<? extends 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(List<? extends Type> typeArguments,
String name,
Expression... arguments)
Returns the method invocation which take the building expression as its receiver object.
|
ExpressionBuilder |
TypeBuilder.method(List<? extends Type> typeArguments,
String name,
Expression... arguments)
Returns the method invocation using the building type as its qualifier.
|
ExpressionBuilder |
ExpressionBuilder.method(List<? extends Type> typeArguments,
String 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,
String 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(List<? extends Type> typeArguments,
String name)
Returns the method invocation using the building expression as its qualifier.
|
ExpressionBuilder |
TypeBuilder.methodReference(List<? extends Type> typeArguments,
String name)
Returns the method invocation using the building type as its qualifier.
|
TypeBuilder |
TypeBuilder.parameterize(List<? extends Type> typeArguments)
Returns the parameterized type.
|
JavadocBuilder |
JavadocBuilder.seeMethod(SimpleName name,
List<? extends Type> parameterTypes)
Starts a
@see tag block for the target method in this builder. |
JavadocBuilder |
JavadocBuilder.seeMethod(String name,
List<? extends 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,
String name,
List<? extends Type> parameterTypes)
Starts a
@see tag block for the target method in this builder. |
Constructor and Description |
---|
TypeBuilder(ModelFactory factory,
Type context)
Creates a new instance.
|
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.