コード例 #1
0
  public boolean visit(CatchClause catchClause) throws Exception {
    ISourceElementRequestor.FieldInfo info = new ISourceElementRequestor.FieldInfo();
    info.modifiers = Modifiers.AccPublic;
    SimpleReference var = catchClause.getVariable();
    info.name = var.getName();
    info.nameSourceEnd = var.sourceEnd() - 1;
    info.nameSourceStart = var.sourceStart();
    info.declarationStart = catchClause.sourceStart();

    fInfoStack.push(info);
    fRequestor.enterField(info);
    return true;
  }
コード例 #2
0
 public boolean endvisit(CatchClause catchClause) throws Exception {
   fRequestor.exitField(catchClause.sourceEnd() - 1);
   fInfoStack.pop();
   return true;
 }