List of usage examples for org.eclipse.jdt.core.dom WhileStatement getParent
public final ASTNode getParent()
null
if this is the root node. From source file:egovframework.mgt.fit.library.parser.visitor.StatementParsingVisitor.java
License:Apache License
/** * while ? ? ? ./* w w w . ja v a2s.c o m*/ * @return */ @Override public boolean visit(WhileStatement node) { if (node.getParent().getNodeType() == parentType) { addSingleStatement(node.toString(), StatementLine.WHILE); } return super.visit(node); }