public class DefaultComponentMetadataAst extends Object implements ComponentMetadataAst
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultComponentMetadataAst.Builder |
EMPTY_METADATA| Modifier and Type | Method and Description |
|---|---|
static DefaultComponentMetadataAst.Builder |
builder() |
static DefaultComponentMetadataAst.Builder |
builder(PropertiesResolver propertiesResolver) |
Map<String,String> |
getDocAttributes() |
OptionalInt |
getEndColumn() |
OptionalInt |
getEndLine() |
Optional<String> |
getFileName() |
Optional<URI> |
getFileUri() |
List<ImportedResource> |
getImportChain()
If the component with this location is in a root config file (not obtained through an
import tag), the returned list
will be empty. |
Map<String,Object> |
getParserAttributes() |
Optional<String> |
getSourceCode() |
OptionalInt |
getStartColumn() |
OptionalInt |
getStartLine() |
public static DefaultComponentMetadataAst.Builder builder()
public static DefaultComponentMetadataAst.Builder builder(PropertiesResolver propertiesResolver)
public Optional<String> getFileName()
getFileName in interface ComponentMetadataAstpublic Optional<URI> getFileUri()
getFileUri in interface ComponentMetadataAstpublic List<ImportedResource> getImportChain()
ComponentMetadataAstimport tag), the returned list
will be empty.
If the component with this location is obtained through an import, the first import will be the first element of the returned list. Any other nested imports will be the subsequent elements of the returned list.
getImportChain in interface ComponentMetadataAstList containing an element for every import tag leading to the file containing the owning
component.public OptionalInt getStartLine()
getStartLine in interface ComponentMetadataAstComponentMetadataAst.getParserAttributes() and AstParserAttribute for more precise
DSL-specific location information.public OptionalInt getStartColumn()
getStartColumn in interface ComponentMetadataAstComponentMetadataAst.getParserAttributes() and AstParserAttribute for more precise
DSL-specific location information.public OptionalInt getEndLine()
getEndLine in interface ComponentMetadataAstComponentMetadataAst.getParserAttributes() and AstParserAttribute for more precise
DSL-specific location information.public OptionalInt getEndColumn()
getEndColumn in interface ComponentMetadataAstComponentMetadataAst.getParserAttributes() and AstParserAttribute for more precise
DSL-specific location information.public Optional<String> getSourceCode()
getSourceCode in interface ComponentMetadataAstpublic Map<String,String> getDocAttributes()
getDocAttributes in interface ComponentMetadataAstjava.util.Map with the doc metadata from the source config.public Map<String,Object> getParserAttributes()
getParserAttributes in interface ComponentMetadataAstjava.util.Map with metadata from the parser.Copyright © 2022 MuleSoft, Inc.. All rights reserved.