Package org.mule.runtime.ast.api
Interface ComponentMetadataAst
@NoImplement
public interface ComponentMetadataAst
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionIf the component with this location is in a root config file (not obtained through animporttag), the returned list will be empty.
-
Field Details
-
EMPTY_METADATA
-
-
Method Details
-
getFileName
- Returns:
- the config file name in which the owner component was defined. It may be empty if the component was created programmatically.
-
getFileUri
- Returns:
- the config file URI in which the owner component was defined. It may be empty if the component was created programmatically.
-
getImportChain
List<ImportedResource> getImportChain()If the component with this location is in a root config file (not obtained through animporttag), 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.
- Returns:
- a
Listcontaining an element for everyimporttag leading to the file containing the owning component. - Since:
- 1.5
-
getStartLine
OptionalInt getStartLine()- Returns:
- the first line number in which the component was defined in the configuration file. It may be empty if the component
was created programmatically. See also
getParserAttributes()andAstParserAttributefor more precise DSL-specific location information.
-
getStartColumn
OptionalInt getStartColumn()- Returns:
- the start column in which the component was defined in the configuration file. It may be empty if the component was
created programmatically. See also
getParserAttributes()andAstParserAttributefor more precise DSL-specific location information.
-
getEndLine
OptionalInt getEndLine()- Returns:
- the last line number in which the component was defined in the configuration file. It may be empty if the component
was created programmatically. See also
getParserAttributes()andAstParserAttributefor more precise DSL-specific location information.
-
getEndColumn
OptionalInt getEndColumn()- Returns:
- the end column in which the component was defined in the configuration file. It may be empty if the component was
created programmatically. See also
getParserAttributes()andAstParserAttributefor more precise DSL-specific location information.
-
getSourceCode
- Returns:
- the source code associated with the owner component. It may be empty if the component was created programmatically.
-
getDocAttributes
- Returns:
- a
java.util.Mapwith the doc metadata from the source config.
-
getParserAttributes
- Returns:
- a
java.util.Mapwith metadata from the parser.
-