@NoImplement
public interface ComponentMetadataAstBuilder
ComponentMetadataAst instances.| Modifier and Type | Method and Description |
|---|---|
ComponentMetadataAst |
build()
Builds the target component metadata.
|
ComponentMetadataAstBuilder |
putDocAttribute(String key,
String value)
Puts s document attribute value in the metadata.
|
<T> ComponentMetadataAstBuilder |
putParserAttribute(AstParserAttribute<T> attribute,
T value)
Puts a parser attribute value in the metadata.
|
ComponentMetadataAstBuilder |
putParserAttribute(String key,
Object value)
Puts a parser attribute value in the metadata.
|
ComponentMetadataAstBuilder |
setEndColumn(int endColumn)
Sets the end column for the metadata.
|
ComponentMetadataAstBuilder |
setEndLine(int endLine)
Sets the last line for the metadata.
|
ComponentMetadataAstBuilder |
setFileName(String fileName)
Sets the file name for the metadata.
|
ComponentMetadataAstBuilder |
setFileUri(URI fileUri)
Sets the config file URI for the metadata.
|
ComponentMetadataAstBuilder |
setImportChain(List<ImportedResource> importChain)
Sets the import chain for the metadata.
|
ComponentMetadataAstBuilder |
setSourceCode(String sourceCode)
Sets the source code for the metadata.
|
ComponentMetadataAstBuilder |
setStartColumn(int startColumn)
Sets the start column for the metadata.
|
ComponentMetadataAstBuilder |
setStartLine(int startLine)
Sets the start line for the metadata.
|
ComponentMetadataAstBuilder setFileName(String fileName)
fileName - the config file name in which the owner component was defined.ComponentMetadataAstBuilder setFileUri(URI fileUri)
fileUri - the config file URI in which the owner component was definedComponentMetadataAstBuilder setImportChain(List<ImportedResource> importChain)
importChain - a List containing an element for every import tag leading to the file containing the
owning component.ComponentMetadataAstBuilder setStartLine(int startLine)
startLine - the first line number in which the component was defined in the configuration file.ComponentMetadataAstBuilder setStartColumn(int startColumn)
startColumn - the start column in which the component was defined in the configuration file.ComponentMetadataAstBuilder setEndLine(int endLine)
endLine - the last line in which the component was defined in the configuration file.ComponentMetadataAstBuilder setEndColumn(int endColumn)
endColumn - the end column in which the component was defined in the configuration file.ComponentMetadataAstBuilder setSourceCode(String sourceCode)
sourceCode - the source code associated with the owner component.ComponentMetadataAstBuilder putDocAttribute(String key, String value)
key - The key to later reference the given document attribute.value - The actual value of the attribute.ComponentMetadataAstBuilder putParserAttribute(String key, Object value)
putParserAttribute(AstParserAttribute, Object) for type safety.
In case you need ot use this one, make sure value is a basic Java type like Integer, Double, BigDecimal, String,
Boolean, etc. to avoid class loading issues when serializing/deserializing these.key - The key to later reference the given parser attribute.value - The actual value of the attribute.<T> ComponentMetadataAstBuilder putParserAttribute(AstParserAttribute<T> attribute, T value)
T - The type of the attribute value.attribute - The key to later reference the given parser attribute.value - The actual value of the attribute.ComponentMetadataAst build()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.