.append(" ").append(declaration.getName().getFullyQualifiedName()) .append("(");
@Override public String getName() { return method.getName().getFullyQualifiedName(); }
@Override public String getName() { return this.enumConstant.getName().getFullyQualifiedName(); }
@Override public String getName() { return method.getName().getFullyQualifiedName(); }
/** * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SimpleName) */ public boolean visit(SimpleName node) { // the name is only code if its not the current label (if any) return visit(node, !node.getFullyQualifiedName().equals(getLabel())); }
@Override public boolean visit(VariableDeclarationFragment node) { pushNode(node, node.getName().getFullyQualifiedName()); return false; }
@Override public boolean visit( VariableDeclarationFragment node ) { this.name = node.getName().getFullyQualifiedName(); return super.visit(node); }
public boolean visit(VariableDeclarationFragment node) { if (name.equals(node.getName().getFullyQualifiedName())) { result[0]= node.getParent(); throw new STOP_VISITING(); } return true; } });
@Override public TypeDeclaration bodyDeclaration(CompilationUnit astRoot) { String name = this.getName(); for (AbstractTypeDeclaration typeDeclaration : this.types(astRoot)) { if (typeDeclaration.getName().getFullyQualifiedName().equals(name)) { return (TypeDeclaration) typeDeclaration; // assume no enum or annotation declarations } } return null; }
public boolean visit(TypeParameter node) { IValue name = values.string(node.getName().getFullyQualifiedName()); IValueList extendsList = new IValueList(values); if (!node.typeBounds().isEmpty()) { for (Iterator it = node.typeBounds().iterator(); it.hasNext();) { Type t = (Type) it.next(); extendsList.add(visitChild(t)); } } ownValue = constructDeclarationNode("typeParameter", name, extendsList.asList()); return false; }
@Override public boolean visit(LabeledStatement node) { pushNode(node, node.getLabel().getFullyQualifiedName()); node.getBody().accept(this); return false; }
public boolean visit(ContinueStatement node) { IValue label = node.getLabel() == null ? null : values.string(node.getLabel().getFullyQualifiedName()); ownValue = constructStatementNode("continue", label); return false; }
@SuppressWarnings("unchecked") @Override public boolean visit(TypeParameter node) { pushNode(node, node.getName().getFullyQualifiedName()); visitList(node.typeBounds()); return false; }
public boolean visit(AnnotationTypeDeclaration node) { IValueList extendedModifiers = parseExtendedModifiers(node.modifiers()); IValue name = values.string(node.getName().getFullyQualifiedName()); IValueList bodyDeclarations = new IValueList(values); for (Iterator it = node.bodyDeclarations().iterator(); it.hasNext();) { BodyDeclaration d = (BodyDeclaration) it.next(); bodyDeclarations.add(visitChild(d)); } ownValue = constructDeclarationNode("annotationType", name, bodyDeclarations.asList()); setKeywordParameters("modifiers", extendedModifiers); return false; }
public boolean visit(LabeledStatement node) { IValue label = values.string(node.getLabel().getFullyQualifiedName()); IValue body = visitChild(node.getBody()); ownValue = constructStatementNode("label", label, body); return false; }
public boolean visit(MemberValuePair node) { IValue name = values.string(node.getName().getFullyQualifiedName()); IValue value = visitChild(node.getValue()); ownValue = constructExpressionNode("memberValuePair", name, value); return false; }
@Override public boolean visit(MethodDeclaration node) { String signature = Signatures.getMethodSignatureFromNode(node, true); if (signature != null) { updateDocNode(findDescriptorByName(node.getName().getFullyQualifiedName(), signature), node, getType(), IApiJavadocTag.MEMBER_METHOD); } return false; }
public boolean visit(BreakStatement node) { IValue label = node.getLabel() == null ? values.string("") : values.string(node.getLabel().getFullyQualifiedName()); ownValue = constructStatementNode("break", label); return false; }
public boolean visit(VariableDeclarationFragment node) { IValue name = values.string(node.getName().getFullyQualifiedName()); IValue initializer = node.getInitializer() == null ? null : visitChild(node.getInitializer()); ownValue = constructExpressionNode("variable", name, values.integer(node.getExtraDimensions()), initializer); return false; }
public boolean visit(AnnotationTypeMemberDeclaration node) { IValueList extendedModifiers = parseExtendedModifiers(node.modifiers()); IValue typeArgument = visitChild(node.getType()); String name = node.getName().getFullyQualifiedName(); IValue defaultBlock = node.getDefault() == null ? null : visitChild(node.getDefault()); ownValue = constructDeclarationNode("annotationTypeMember", typeArgument, values.string(name), defaultBlock); setKeywordParameters("modifiers", extendedModifiers); return false; }