List of usage examples for org.eclipse.jdt.core.dom SwitchStatement toString
@Override public final String toString()
From source file:egovframework.mgt.fit.library.parser.visitor.StatementParsingVisitor.java
License:Apache License
/** * switch ? ? ? .//from www.ja v a 2 s. co m * @return */ @Override public boolean visit(SwitchStatement node) { if (node.getParent().getNodeType() == parentType) { addSingleStatement(node.toString(), StatementLine.SWITCH); } return super.visit(node); }
From source file:padl.creator.javafile.eclipse.astVisitors.ConditionalModelAnnotator.java
License:Open Source License
@Override public boolean visit(final SwitchStatement node) { if (this.myCurrentOperation != null) { this.myCurrentOperation.addConstituent(((StatementFactory) StatementFactory.getInstance()) .createSwitchInstruction(node.toString().toCharArray(), node.getLength())); }//from w w w . j a va 2 s . com return super.visit(node); }