public interface TypeMemberBuilder<T extends TypeMemberBuilder<T>>
| Modifier and Type | Method and Description |
|---|---|
AnnotationTypeBuilder |
addAnnotation(String packageName,
String name)
The method creates new AnnotationTypeBuilder containing specified package
name an annotation name.
|
AccessModifier |
getAccessModifier() |
String |
getName()
Returns the name of property.
|
T |
setAccessModifier(AccessModifier modifier)
Sets the access modifier of property.
|
T |
setComment(String comment)
Adds String definition of comment into Method Signature definition.
|
T |
setFinal(boolean isFinal)
Sets the flag final for method signature.
|
T |
setReturnType(Type returnType)
Adds return Type into Builder definition for Generated Property.
|
T |
setStatic(boolean isStatic) |
AnnotationTypeBuilder addAnnotation(String packageName, String name)
null
references. In case that any of parameters contains null the
method SHOULD thrown IllegalArgumentExceptionpackageName - Package Name of Annotation Typename - Name of Annotation Typenew instance of Annotation Type Builder.String getName()
T setReturnType(Type returnType)
null, otherwise the method
SHOULD throw IllegalArgumentExceptionreturnType - Return Type of property.AccessModifier getAccessModifier()
T setAccessModifier(AccessModifier modifier)
modifier - Access Modifier value.T setComment(String comment)
comment - Comment String.T setFinal(boolean isFinal)
isFinal - Is FinalT setStatic(boolean isStatic)
Copyright © 2014. All rights reserved.