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, startLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitend, endCharacter, endLocation, getDescr, startCharacter, startLocationprotected TypeDeclarationDescrBuilderImpl(PackageDescrBuilder parent)
public TypeDeclarationDescrBuilder name(String type)
TypeDeclarationDescrBuildername in interface TypeDeclarationDescrBuildertype - the type namepublic TypeDeclarationDescrBuilder superType(String type)
TypeDeclarationDescrBuildersuperType in interface TypeDeclarationDescrBuildertype - the super type for this typepublic TypeDeclarationDescrBuilder setTrait(boolean trait)
setTrait in interface TypeDeclarationDescrBuilderpublic AnnotationDescrBuilder<TypeDeclarationDescrBuilder> newAnnotation(String name)
newAnnotation in interface AnnotatedDescrBuilder<TypeDeclarationDescrBuilder>public FieldDescrBuilder<AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>> newField(String name)
AbstractClassTypeDeclarationBuildernewField in interface AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>name - the name of the fieldCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.