List of usage examples for org.eclipse.jdt.core.dom SwitchStatement 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
/** * switch ? ? ? ./*from w ww . j a v a2s .co m*/ * @return */ @Override public boolean visit(SwitchStatement node) { if (node.getParent().getNodeType() == parentType) { addSingleStatement(node.toString(), StatementLine.SWITCH); } return super.visit(node); }