org.eclipse.jdt.core.dom.Block.accept()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.eclipse.jdt.core.dom.Block.accept()方法的一些代码示例,展示了Block.accept()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.accept()方法的具体详情如下:
包路径:org.eclipse.jdt.core.dom.Block
类名称:Block
方法名:accept

Block.accept介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public boolean visit(CatchClause node) {
  this.buffer.append("catch (");//$NON-NLS-1$
  node.getException().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

public boolean visit(SynchronizedStatement node) {
  this.fBuffer.append("synchronized (");//$NON-NLS-1$
  node.getExpression().accept(this);
  this.fBuffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(CatchClause node) {
  this.fBuffer.append("catch (");//$NON-NLS-1$
  node.getException().accept(this);
  this.fBuffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: JnRouvignac/AutoRefactor

@Override
public boolean visit(Block node) {
  final NewAndPutAllMethodVisitor newAndPutAllMethodVisitor = new NewAndPutAllMethodVisitor(ctx, node);
  node.accept(newAndPutAllMethodVisitor);
  return newAndPutAllMethodVisitor.getResult();
}

代码示例来源:origin: JnRouvignac/AutoRefactor

@Override
public boolean visit(Block node) {
  final CatchesAndFollowingCodeVisitor catchesAndFollowingCodeVisitor =
      new CatchesAndFollowingCodeVisitor(ctx, node);
  node.accept(catchesAndFollowingCodeVisitor);
  return catchesAndFollowingCodeVisitor.getResult();
}

代码示例来源:origin: JnRouvignac/AutoRefactor

@Override
public boolean visit(Block node) {
  final ReturnStatementVisitor returnStatementVisitor = new ReturnStatementVisitor(ctx, node);
  node.accept(returnStatementVisitor);
  return returnStatementVisitor.getResult();
}

代码示例来源:origin: mono/sharpen

public boolean visit(MethodDeclaration node) {
  IMethodBinding saved = _currentMethodBinding;
  _currentMethodBinding = node.resolveBinding();
  node.getBody().accept(this);
  _currentMethodBinding = saved;
  return false;
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public boolean visit(SynchronizedStatement node) {
  this.buffer.append("synchronized (");//$NON-NLS-1$
  node.getExpression().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

@Override
public boolean visit(SynchronizedStatement node) {
  this.fBuffer.append("synchronized (");//$NON-NLS-1$
  node.getExpression().accept(this);
  this.fBuffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public boolean visit(CatchClause node) {
  this.buffer.append("catch (");//$NON-NLS-1$
  node.getException().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: JnRouvignac/AutoRefactor

@Override
public boolean visit(Block node) {
  final AssignmentIfAndReturnVisitor assignmentIfAndReturnVisitor = new AssignmentIfAndReturnVisitor(ctx, node);
  node.accept(assignmentIfAndReturnVisitor);
  return assignmentIfAndReturnVisitor.getResult();
}

代码示例来源:origin: JnRouvignac/AutoRefactor

@Override
public boolean visit(Block node) {
  final NewAndPutAllMethodVisitor newAndPutAllMethodVisitor = new NewAndPutAllMethodVisitor(ctx, node);
  node.accept(newAndPutAllMethodVisitor);
  return newAndPutAllMethodVisitor.getResult();
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public boolean visit(SynchronizedStatement node) {
  this.buffer.append("synchronized (");//$NON-NLS-1$
  node.getExpression().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public boolean visit(CatchClause node) {
  this.buffer.append("catch (");//$NON-NLS-1$
  node.getException().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public boolean visit(SynchronizedStatement node) {
  this.buffer.append("synchronized (");//$NON-NLS-1$
  node.getExpression().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

public boolean visit(SynchronizedStatement node) {
  this.buffer.append("synchronized (");//$NON-NLS-1$
  node.getExpression().accept(this);
  this.buffer.append(") ");//$NON-NLS-1$
  node.getBody().accept(this);
  return false;
}

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

public boolean visit(CatchClause node) {
  if (isInside(node)) {
    node.getBody().accept(this);
    node.getException().accept(this);
  }
  return false;			
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

@Override
public boolean visit(CatchClause node) {
  if (isInside(node)) {
    node.getBody().accept(this);
    node.getException().accept(this);
  }
  return false;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(MethodDeclaration node) {
  if (isInside(node)) {
    Block body= node.getBody();
    if (body != null) {
      body.accept(this);
    }
    visitBackwards(node.parameters());
    visitBackwards(node.typeParameters());
  }
  return false;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(Initializer node) {
  if (node.getJavadoc() != null) {
    node.getJavadoc().accept(this);
  }
  if (node.getAST().apiLevel() >= JLS3) {
    printModifiers(node.modifiers());
  }
  node.getBody().accept(this);
  return false;
}

相关文章