W3cubDocs

/Groovy 3.0

[Java] Class MethodReferenceExpression

  • org.codehaus.groovy.ast.expr.MethodReferenceExpression
public class MethodReferenceExpression
extends MethodPointerExpression

Represents a method reference or a constructor reference, e.g. System.out::println OR Objects::requireNonNull OR Integer::new OR int[]::new

Constructor Detail

public MethodReferenceExpression(Expression expression, Expression methodName)

Method Detail

@Override public String getText()

@Override public Expression transformExpression(ExpressionTransformer transformer)

@Override public void visit(GroovyCodeVisitor visitor)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/expr/MethodReferenceExpression.html