public class PlaceholderVisitor extends ClassCodeVisitorSupport
Constructor and description |
---|
PlaceholderVisitor(CompilationUnit compilationUnit, SourceUnit source) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected SourceUnit |
getSourceUnit() |
|
public static boolean |
isPlaceholder(ASTNode node) |
|
public void |
visitClosureExpression(ClosureExpression expression) Visit the Closure (or Lambda) marking underscore-named parameters as placeholders |
|
public void |
visitDeclarationExpression(DeclarationExpression expression) Visit the declaration marking underscore-named variables in multi-assignments as placeholders |
Visit the Closure (or Lambda) marking underscore-named parameters as placeholders
expression
- the expression to checkVisit the declaration marking underscore-named variables in multi-assignments as placeholders
expression
- the expression to checkCopyright © 2003-2024 The Apache Software Foundation. All rights reserved.