Example usage for org.eclipse.jdt.core.dom SwitchStatement toString

List of usage examples for org.eclipse.jdt.core.dom SwitchStatement toString

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom SwitchStatement toString.

Prototype

@Override
public final String toString() 

Source Link

Document

Returns a string representation of this node suitable for debugging purposes only.

Usage

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);
}