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 null
public PackageDeclaration convert(PackageElement packageElement)
packageElement
- the target package elementnull
if the target is a default (unnamed) packageIllegalArgumentException
- if the parameter is null
public Name convert(Name name)
name
- the target nameIllegalArgumentException
- if the parameter is null
public Type convert(TypeMirror type)
void
pseudo-type.type
- the target typenull
if it is unsupported typeIllegalArgumentException
- if the parameter is null
public ArrayType convert(ArrayType type)
type
- the target typenull
if it is unsupported typeIllegalArgumentException
- if the parameter is null
public Type convert(DeclaredType type)
type
- the target typenull
if it is unsupported typeIllegalArgumentException
- if the parameter is null
public Type convert(NoType type)
void
pseudo-type.type
- the target typenull
if it is unsupported typeIllegalArgumentException
- if the parameter is null
public BasicType convert(PrimitiveType type)
type
- the target typeIllegalArgumentException
- if the parameter is null
public NamedType convert(TypeVariable type)
type
- the target type variableIllegalArgumentException
- if the parameter is null
public Wildcard convert(WildcardType type)
type
- the target typenull
if it is unsupported wildcard formatIllegalArgumentException
- if the parameter is null
public List<ModifierKind> convert(Collection<Modifier> modifiers)
modifiers
- the target modifiersIllegalArgumentException
- if the parameter is null
public 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 null
public 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 null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.