public class TypeDeclarationDescrBuilderImpl extends BaseDescrBuilderImpl<PackageDescrBuilder,TypeDeclarationDescr> implements TypeDeclarationDescrBuilder
descr, parent
Modifier | Constructor and Description |
---|---|
protected |
TypeDeclarationDescrBuilderImpl(PackageDescrBuilder parent) |
Modifier and Type | Method and Description |
---|---|
TypeDeclarationDescrBuilder |
name(String type)
Defines the type name
|
AnnotationDescrBuilder<TypeDeclarationDescrBuilder> |
newAnnotation(String name) |
FieldDescrBuilder<AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>> |
newField(String name)
Adds a field to this type declaration
|
TypeDeclarationDescrBuilder |
setTrait(boolean trait) |
TypeDeclarationDescrBuilder |
superType(String type)
Defines the super type of this type.
|
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
protected TypeDeclarationDescrBuilderImpl(PackageDescrBuilder parent)
public TypeDeclarationDescrBuilder name(String type)
TypeDeclarationDescrBuilder
name
in interface TypeDeclarationDescrBuilder
type
- the type namepublic TypeDeclarationDescrBuilder superType(String type)
TypeDeclarationDescrBuilder
superType
in interface TypeDeclarationDescrBuilder
type
- the super type for this typepublic TypeDeclarationDescrBuilder setTrait(boolean trait)
setTrait
in interface TypeDeclarationDescrBuilder
public AnnotationDescrBuilder<TypeDeclarationDescrBuilder> newAnnotation(String name)
newAnnotation
in interface AnnotatedDescrBuilder<TypeDeclarationDescrBuilder>
public FieldDescrBuilder<AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>> newField(String name)
AbstractClassTypeDeclarationBuilder
newField
in interface AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>
name
- the name of the fieldCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.