public boolean visit(ConstantDeclaration declaration) throws Exception { final ISourceElementRequestor.FieldInfo info = new ISourceElementRequestor.FieldInfo(); info.modifiers = Modifiers.AccConstant | Modifiers.AccPublic | Modifiers.AccFinal; final ConstantReference constantName = declaration.getConstantName(); info.name = ASTUtils.stripQuotes(constantName.getName()); info.nameSourceEnd = constantName.sourceEnd() - 1; info.nameSourceStart = constantName.sourceStart(); info.declarationStart = declaration.sourceStart(); fRequestor.enterField(info); return true; }
public boolean endvisit(ConstantDeclaration declaration) throws Exception { fRequestor.exitField(declaration.sourceEnd() - 1); return true; }