Package io.codemodder.ast
Class ForEachDeclaration
java.lang.Object
io.codemodder.ast.LocalVariableDeclaration
io.codemodder.ast.ForEachDeclaration
- All Implemented Interfaces:
LocalDeclaration
Holds the nodes in the AST that represents a variable declaration in an enhanced for statement .
See Java
Language Specification - Section 14.14.14 for more details.
-
Field Summary
Fields inherited from class io.codemodder.ast.LocalVariableDeclaration
scope, vd, vde
-
Constructor Summary
ConstructorsConstructorDescriptionForEachDeclaration
(com.github.javaparser.ast.stmt.ForEachStmt stmt, com.github.javaparser.ast.expr.VariableDeclarationExpr vde, com.github.javaparser.ast.body.VariableDeclarator vd) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalScope
com.github.javaparser.ast.stmt.ForEachStmt
Returns theForEachStmt
Node
that holds the declaration.Methods inherited from class io.codemodder.ast.LocalVariableDeclaration
fromVariableDeclarator, getDeclaration, getName, getScope, getVariableDeclarationExpr, getVariableDeclarator, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.codemodder.ast.LocalDeclaration
findAllMethodCalls, findAllReferences, isReference
-
Constructor Details
-
ForEachDeclaration
public ForEachDeclaration(com.github.javaparser.ast.stmt.ForEachStmt stmt, com.github.javaparser.ast.expr.VariableDeclarationExpr vde, com.github.javaparser.ast.body.VariableDeclarator vd)
-
-
Method Details
-
getStatement
public com.github.javaparser.ast.stmt.ForEachStmt getStatement()Returns theForEachStmt
Node
that holds the declaration.- Specified by:
getStatement
in classLocalVariableDeclaration
-
findScope
- Specified by:
findScope
in classLocalVariableDeclaration
-