decl.sourceStart = start(type.astName()); decl.sourceEnd = end(type.astName()); decl.declarationSourceStart = jstart(type); decl.declarationSourceEnd = end(type); defaultConstructor.constructorCall = new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); defaultConstructor.modifiers = decl.modifiers & VISIBILITY_MASK; defaultConstructor.selector = toName(type.astName()); defaultConstructor.sourceStart = defaultConstructor.declarationSourceStart = defaultConstructor.constructorCall.sourceStart = start(type.astName()); defaultConstructor.sourceEnd = defaultConstructor.bodyEnd = defaultConstructor.constructorCall.sourceEnd = defaultConstructor.declarationSourceEnd = end(type.astName()); methods.add(0, defaultConstructor);
decl.sourceStart = start(type.astName()); decl.sourceEnd = end(type.astName()); decl.declarationSourceStart = jstart(type); decl.declarationSourceEnd = end(type); defaultConstructor.constructorCall = new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); defaultConstructor.modifiers = decl.modifiers & VISIBILITY_MASK; defaultConstructor.selector = toName(type.astName()); defaultConstructor.sourceStart = defaultConstructor.declarationSourceStart = defaultConstructor.constructorCall.sourceStart = start(type.astName()); defaultConstructor.sourceEnd = defaultConstructor.bodyEnd = defaultConstructor.constructorCall.sourceEnd = defaultConstructor.declarationSourceEnd = end(type.astName()); methods.add(0, defaultConstructor);
if (c instanceof TypeDeclaration && namesMatch(name, ((TypeDeclaration) c).astName())) return false; if (stopAtSelf && c == prevN) break;
decl.sourceStart = start(type.astName()); decl.sourceEnd = end(type.astName()); decl.declarationSourceStart = jstart(type); decl.declarationSourceEnd = end(type); defaultConstructor.constructorCall = new ExplicitConstructorCall(ExplicitConstructorCall.ImplicitSuper); defaultConstructor.modifiers = decl.modifiers & VISIBILITY_MASK; defaultConstructor.selector = toName(type.astName()); defaultConstructor.sourceStart = defaultConstructor.declarationSourceStart = defaultConstructor.constructorCall.sourceStart = start(type.astName()); defaultConstructor.sourceEnd = defaultConstructor.bodyEnd = defaultConstructor.constructorCall.sourceEnd = defaultConstructor.declarationSourceEnd = end(type.astName()); methods.add(0, defaultConstructor);
if (c instanceof TypeDeclaration && namesMatch(name, ((TypeDeclaration) c).astName())) return false; if (stopAtSelf && c == prevN) break;
if (c instanceof TypeDeclaration && namesMatch(name, ((TypeDeclaration) c).astName())) return false; if (stopAtSelf && c == prevN) break;
@Override public boolean visitComment(lombok.ast.Comment node) { if (!node.isJavadoc()) { throw new RuntimeException("Only javadoc expected here"); } Node parent = node.getParent(); parent = parent == null ? null : parent.getParent(); while (parent != null && !(parent instanceof lombok.ast.TypeDeclaration)) parent = parent.getParent(); String typeName = null; if (parent instanceof lombok.ast.TypeDeclaration) { Identifier identifier = ((lombok.ast.TypeDeclaration)parent).astName(); if (identifier != null) typeName = identifier.astValue(); } if (typeName == null) { typeName = getTypeNameFromFileName(compilationResult.getFileName()); } return set(node, new JustJavadocParser(silentProblemReporter, typeName).parse(rawInput, node.getPosition().getStart(), node.getPosition().getEnd())); }
if (node instanceof TypeDeclaration) { return ((TypeDeclaration) node).astName(); } else if (node instanceof MethodDeclaration) { return ((MethodDeclaration)node).astMethodName();
@Override public boolean visitComment(lombok.ast.Comment node) { if (!node.isJavadoc()) { throw new RuntimeException("Only javadoc expected here"); } Node parent = node.getParent(); parent = parent == null ? null : parent.getParent(); while (parent != null && !(parent instanceof lombok.ast.TypeDeclaration)) parent = parent.getParent(); String typeName = null; if (parent instanceof lombok.ast.TypeDeclaration) { Identifier identifier = ((lombok.ast.TypeDeclaration)parent).astName(); if (identifier != null) typeName = identifier.astValue(); } if (typeName == null) { typeName = getTypeNameFromFileName(compilationResult.getFileName()); } return set(node, new JustJavadocParser(silentProblemReporter, typeName).parse(rawInput, node.getPosition().getStart(), node.getPosition().getEnd())); }
@Override public boolean visitComment(lombok.ast.Comment node) { if (!node.isJavadoc()) { throw new RuntimeException("Only javadoc expected here"); } Node parent = node.getParent(); parent = parent == null ? null : parent.getParent(); while (parent != null && !(parent instanceof lombok.ast.TypeDeclaration)) parent = parent.getParent(); String typeName = null; if (parent instanceof lombok.ast.TypeDeclaration) { Identifier identifier = ((lombok.ast.TypeDeclaration)parent).astName(); if (identifier != null) typeName = identifier.astValue(); } if (typeName == null) { typeName = getTypeNameFromFileName(compilationResult.getFileName()); } return set(node, new JustJavadocParser(silentProblemReporter, typeName).parse(rawInput, node.getPosition().getStart(), node.getPosition().getEnd())); }
typeDecl.astName(new Identifier().astValue(name)); typeDecl.astModifiers((Modifiers) toTree(node.mods)); addJavadoc(typeDecl, node.mods);
typeDecl.astName(new Identifier().astValue(name)); typeDecl.astModifiers((Modifiers) toTree(node.mods)); addJavadoc(typeDecl, node.mods);
typeDecl.astName(new Identifier().astValue(name)); typeDecl.astModifiers((Modifiers) toTree(node.mods)); addJavadoc(typeDecl, node.mods);
decl.astName(toIdentifier(node.name, node.sourceStart, node.sourceEnd)); decl.setPosition(toPosition(node.declarationSourceStart, node.declarationSourceEnd));
decl.astName(toIdentifier(node.name, node.sourceStart, node.sourceEnd)); decl.setPosition(toPosition(node.declarationSourceStart, node.declarationSourceEnd));
decl.astName(toIdentifier(node.name, node.sourceStart, node.sourceEnd)); decl.setPosition(toPosition(node.declarationSourceStart, node.declarationSourceEnd));