public static class AnnotationAttachment.AnnotationBuilder extends Object
Constructor and Description |
---|
AnnotationBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeNameValuePair(String name,
AnnotationAttributeValue value)
Add a attribute name-value pair for the annotation.
|
AnnotationAttachment |
build() |
void |
setName(String string)
Set the name of the annotation.
|
void |
setNodeLocation(NodeLocation location)
Set the source location of the annotation.
|
void |
setPkgName(String pkgName)
Set the package name of the annotation.
|
void |
setPkgPath(String pkgPath)
Set the package path of the annotation.
|
void |
setWhiteSpaceDescriptor(WhiteSpaceDescriptor whiteSpaceDescriptor) |
public void setNodeLocation(NodeLocation location)
location
- Source location of the annotationpublic void setWhiteSpaceDescriptor(WhiteSpaceDescriptor whiteSpaceDescriptor)
public void setName(String string)
string
- Name of the annotationpublic void setPkgName(String pkgName)
pkgName
- Package name of the annotationpublic void setPkgPath(String pkgPath)
pkgPath
- Package path of the annotationpublic void addAttributeNameValuePair(String name, AnnotationAttributeValue value)
name
- Name of the attributevalue
- Value of the attributepublic AnnotationAttachment build()
Copyright © 2018 WSO2. All rights reserved.