Package org.codehaus.groovy.ast.expr
Class NamedArgumentListExpression
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.codehaus.groovy.ast.expr.MapExpression
org.codehaus.groovy.ast.expr.NamedArgumentListExpression
- All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>,NodeMetaDataHandler
Represents one or more arguments being passed into a method by name
-
Field Summary
Fields inherited from class org.codehaus.groovy.ast.expr.Expression
EMPTY_ARRAYFields inherited from interface groovy.lang.groovydoc.GroovydocHolder
DOC_COMMENT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a named-argument list with no entries.NamedArgumentListExpression(List<MapEntryExpression> mapEntryExpressions) Creates a named-argument list from the supplied map entries, in order. -
Method Summary
Modifier and TypeMethodDescriptiontransformExpression(ExpressionTransformer transformer) Transforms this expression and any nested expressions according to the provided transformer.Methods inherited from class org.codehaus.groovy.ast.expr.MapExpression
addMapEntryExpression, addMapEntryExpression, getMapEntryExpressions, getText, isDynamic, toString, visitMethods inherited from class org.codehaus.groovy.ast.expr.Expression
getType, setType, transformExpressions, transformExpressionsMethods inherited from class org.codehaus.groovy.ast.AnnotatedNode
addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticMethods inherited from class org.codehaus.groovy.ast.ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandler
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, newMetaDataMap, putNodeMetaData, removeNodeMetaData, setNodeMetaData
-
Constructor Details
-
NamedArgumentListExpression
public NamedArgumentListExpression()Creates a named-argument list with no entries. -
NamedArgumentListExpression
Creates a named-argument list from the supplied map entries, in order.- Parameters:
mapEntryExpressions- thename: valueentries
-
-
Method Details
-
transformExpression
Description copied from class:ExpressionTransforms this expression and any nested expressions according to the provided transformer. This method is called during AST transformation phases and must recursively transform any nested expressions to support full AST tree transformation.- Overrides:
transformExpressionin classMapExpression- Parameters:
transformer- theExpressionTransformerto apply- Returns:
- a transformed copy of this expression (or this expression itself if no changes are needed)
-