Example usage for org.eclipse.jdt.core.dom SynchronizedStatement getParent

List of usage examples for org.eclipse.jdt.core.dom SynchronizedStatement getParent

Introduction

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

Prototype

public final ASTNode getParent() 

Source Link

Document

Returns this node's parent node, or null if this is the root node.

Usage

From source file:egovframework.mgt.fit.library.parser.visitor.StatementParsingVisitor.java

License:Apache License

/**
 * ? ? ?  ? ./*from ww  w  .java  2 s.  c o m*/
 * @return   
 */
@Override
public boolean visit(SynchronizedStatement node) {
    if (node.getParent().getNodeType() == parentType) {
        addSingleStatement(node.toString(), StatementLine.SYNCHRONIZED);
    }
    return super.visit(node);
}