public class ComponentParameterAst extends Object
| Constructor and Description |
|---|
ComponentParameterAst(ParameterModel paramModel,
Optional<String> expressionValue,
Optional<Object> fixedValue,
String rawValue,
String resolvedRawValue,
SourceCodeLocation metadata,
ComponentGenerationInformation generationInformation,
boolean defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getExpressionValue()
Returns the expression for this parameter if it is an expression, or
Optional.empty() otherwise. |
Optional<Object> |
getFixedValue()
Returns the fixed value for this parameter if it is not expression, or
Optional.empty() otherwise. |
ComponentGenerationInformation |
getGenerationInformation() |
Optional<SourceCodeLocation> |
getMetadata() |
ParameterModel |
getModel() |
String |
getRawValue()
This method WILL NOT resolve any property placeholders to the actual values if present.
|
String |
getResolvedRawValue()
This method WILL resolve any property placeholders to the actual values if present.
|
boolean |
isDefaultValue()
Returns
true if this is a default parameter; returns false otherwise. |
public ComponentParameterAst(ParameterModel paramModel, Optional<String> expressionValue, Optional<Object> fixedValue, String rawValue, String resolvedRawValue, SourceCodeLocation metadata, ComponentGenerationInformation generationInformation, boolean defaultValue)
public ParameterModel getModel()
public Optional<String> getExpressionValue()
Optional.empty() otherwise.
When using the right part returned by this method for a parameter that is a complex object defined inline, the
definition of the object will be returned (a ComponentAst), not the object itself.
public Optional<Object> getFixedValue()
Optional.empty() otherwise.
When the value is a complex object defined inline, the definition of the object will be returned (a ComponentAst),
not the object itself.
public String getRawValue()
getResolvedRawValue() or
#getValue() if properties resolution is needed.public String getResolvedRawValue()
getRawValue() if properties
resolution is not wanted.public Optional<SourceCodeLocation> getMetadata()
Optional.empty() otherwise.public ComponentGenerationInformation getGenerationInformation()
public boolean isDefaultValue()
true if this is a default parameter; returns false otherwise.Copyright © 2025 MuleSoft, Inc.. All rights reserved.