java.lang.Object
org.mule.runtime.ast.api.util.BaseComponentAst
- All Implemented Interfaces:
ComponentAst
Base implementation of
ComponentAst. It is agnostic from data, and it implements default behavior.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will NOT traverse any complex parameters this component has.protected ComponentParameterAstdoGetParameter(Collection<ComponentParameterAst> parameters, String groupName, String paramName) getParameter(String groupName, String paramName) This method will also traverse the complex parameters in each component.recursiveSpliterator(AstTraversalDirection direction) This method will also traverse the complex parameters in each component.This method will also traverse the complex parameters in each component.recursiveStream(AstTraversalDirection direction) This method will also traverse the complex parameters in each component.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mule.runtime.ast.api.ComponentAst
directChildren, directChildrenStreamByIdentifier, getAnnotations, getComponentId, getComponentType, getExtensionModel, getGenerationInformation, getIdentifier, getLocation, getMetadata, getModel, getParameters, getType
-
Constructor Details
-
BaseComponentAst
public BaseComponentAst()
-
-
Method Details
-
recursiveStream
Description copied from interface:ComponentAstThis method will also traverse the complex parameters in each component.- Specified by:
recursiveStreamin interfaceComponentAst- Returns:
- a
Streamfor this component and its children recursively that navigates the whole AST usingTOP_DOWNdirection.
-
recursiveSpliterator
Description copied from interface:ComponentAstThis method will also traverse the complex parameters in each component.- Specified by:
recursiveSpliteratorin interfaceComponentAst- Returns:
- a
Spliteratorfor this component and its children recursively that navigates the whole AST usingTOP_DOWNdirection.
-
recursiveStream
Description copied from interface:ComponentAstThis method will also traverse the complex parameters in each component.- Specified by:
recursiveStreamin interfaceComponentAst- Parameters:
direction- the @{link AstTraversalDirection} used to navigate the whole AST.- Returns:
- a
Streamfor this component and its children recursively that navigates the whole AST using the given @{code direction}.
-
recursiveSpliterator
Description copied from interface:ComponentAstThis method will also traverse the complex parameters in each component.- Specified by:
recursiveSpliteratorin interfaceComponentAst- Parameters:
direction- the @{link AstTraversalDirection} used to navigate the whole AST.- Returns:
- a
Spliteratorfor this component and its children recursively that navigates the whole AST using the given @{code direction}.
-
directChildrenStream
- Specified by:
directChildrenStreamin interfaceComponentAst- Returns:
- a
Streamfor this component's children.
-
directChildrenSpliterator
Description copied from interface:ComponentAstThis method will NOT traverse any complex parameters this component has.- Specified by:
directChildrenSpliteratorin interfaceComponentAst- Returns:
- a
Spliteratorfor this component's children.
-
getParameter
- Specified by:
getParameterin interfaceComponentAst- Parameters:
groupName- the name of the parameterGroup to get AST for.paramName- the name of the parameter to get AST for.- Returns:
- the AST of the parameter, or null if there is no parameter with the given
groupNameandparamName.
-
doGetParameter
protected ComponentParameterAst doGetParameter(Collection<ComponentParameterAst> parameters, String groupName, String paramName) -
toString
-