org.drools.lang.api
Interface TypeDeclarationDescrBuilder

All Superinterfaces:
AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>, AnnotatedDescrBuilder<TypeDeclarationDescrBuilder>, DescrBuilder<PackageDescrBuilder,TypeDeclarationDescr>
All Known Implementing Classes:
TypeDeclarationDescrBuilderImpl

public interface TypeDeclarationDescrBuilder
extends AnnotatedDescrBuilder<TypeDeclarationDescrBuilder>, AbstractClassTypeDeclarationBuilder<TypeDeclarationDescr>

A descriptor builder for declared types


Method Summary
 TypeDeclarationDescrBuilder name(String type)
          Defines the type name
 TypeDeclarationDescrBuilder superType(String type)
          Defines the super type of this type.
 
Methods inherited from interface org.drools.lang.api.AnnotatedDescrBuilder
newAnnotation
 
Methods inherited from interface org.drools.lang.api.AbstractClassTypeDeclarationBuilder
newField
 
Methods inherited from interface org.drools.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
 

Method Detail

name

TypeDeclarationDescrBuilder name(String type)
Defines the type name

Parameters:
type - the type name
Returns:
itself

superType

TypeDeclarationDescrBuilder superType(String type)
Defines the super type of this type. For POJOs, this is the super class it will extend

Parameters:
type - the super type for this type
Returns:
itself


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.