public class Jsr269 extends Object
JSR-269 into the the Java DOM objects.| Constructor and Description |
|---|
Jsr269(ModelFactory factory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayType |
convert(ArrayType type)
Converts the array type.
|
List<ModifierKind> |
convert(Collection<Modifier> modifiers)
Converts the modifiers.
|
Type |
convert(DeclaredType type)
Converts the class, interface type, or its parameterized type.
|
Name |
convert(Name name)
Converts the name.
|
Type |
convert(NoType type)
Converts the
void pseudo-type. |
PackageDeclaration |
convert(PackageElement packageElement)
Converts the package element.
|
BasicType |
convert(PrimitiveType type)
Converts the primitive type.
|
Type |
convert(TypeMirror type)
Converts the type mirror.
|
NamedType |
convert(TypeVariable type)
Converts the type variable.
|
Wildcard |
convert(WildcardType type)
Converts the wildcard type.
|
void |
emit(Filer filer,
CompilationUnit unit)
Emits the target compilation unit using the filer.
|
void |
emit(Filer filer,
CompilationUnit unit,
Element... originatingElements)
Emits the target compilation unit using the filer.
|
public Jsr269(ModelFactory factory)
factory - the Java DOM factoryIllegalArgumentException - if the parameter is nullpublic PackageDeclaration convert(PackageElement packageElement)
packageElement - the target package elementnull if the target is a default (unnamed) packageIllegalArgumentException - if the parameter is nullpublic Name convert(Name name)
name - the target nameIllegalArgumentException - if the parameter is nullpublic Type convert(TypeMirror type)
void pseudo-type.type - the target typenull if it is unsupported typeIllegalArgumentException - if the parameter is nullpublic ArrayType convert(ArrayType type)
type - the target typenull if it is unsupported typeIllegalArgumentException - if the parameter is nullpublic Type convert(DeclaredType type)
type - the target typenull if it is unsupported typeIllegalArgumentException - if the parameter is nullpublic Type convert(NoType type)
void pseudo-type.type - the target typenull if it is unsupported typeIllegalArgumentException - if the parameter is nullpublic BasicType convert(PrimitiveType type)
type - the target typeIllegalArgumentException - if the parameter is nullpublic NamedType convert(TypeVariable type)
type - the target type variableIllegalArgumentException - if the parameter is nullpublic Wildcard convert(WildcardType type)
type - the target typenull if it is unsupported wildcard formatIllegalArgumentException - if the parameter is nullpublic List<ModifierKind> convert(Collection<Modifier> modifiers)
modifiers - the target modifiersIllegalArgumentException - if the parameter is nullpublic void emit(Filer filer, CompilationUnit unit) throws IOException
filer - the filerunit - the target compilation unitIOException - if error was occurred while emitting the target compilation unitIllegalArgumentException - if the parameters are nullpublic void emit(Filer filer, CompilationUnit unit, Element... originatingElements) throws IOException
filer - the filerunit - the target compilation unitoriginatingElements - the original elementsIOException - if error was occurred while emitting the target compilation unitIllegalArgumentException - if the parameters are nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.