Make JS ast nodes final

This commit is contained in:
Clément Fournier
2020-04-20 11:15:30 +02:00
parent af4504293c
commit 07a75a0dbd
49 changed files with 49 additions and 49 deletions

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ArrayComprehension;
public class ASTArrayComprehension extends AbstractEcmascriptNode<ArrayComprehension> {
public final class ASTArrayComprehension extends AbstractEcmascriptNode<ArrayComprehension> {
ASTArrayComprehension(ArrayComprehension arrayComprehension) {
super(arrayComprehension);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ArrayComprehensionLoop;
public class ASTArrayComprehensionLoop extends AbstractEcmascriptNode<ArrayComprehensionLoop> {
public final class ASTArrayComprehensionLoop extends AbstractEcmascriptNode<ArrayComprehensionLoop> {
ASTArrayComprehensionLoop(ArrayComprehensionLoop arrayComprehensionLoop) {
super(arrayComprehensionLoop);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ArrayLiteral;
public class ASTArrayLiteral extends AbstractEcmascriptNode<ArrayLiteral>
public final class ASTArrayLiteral extends AbstractEcmascriptNode<ArrayLiteral>
implements DestructuringNode, TrailingCommaNode {
private boolean trailingComma;

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.Assignment;
public class ASTAssignment extends AbstractInfixEcmascriptNode<Assignment> {
public final class ASTAssignment extends AbstractInfixEcmascriptNode<Assignment> {
ASTAssignment(Assignment asssignment) {
super(asssignment);
}

View File

@ -11,7 +11,7 @@ import org.mozilla.javascript.ast.AstRoot;
import net.sourceforge.pmd.lang.ast.RootNode;
public class ASTAstRoot extends AbstractEcmascriptNode<AstRoot> implements RootNode {
public final class ASTAstRoot extends AbstractEcmascriptNode<AstRoot> implements RootNode {
private Map<Integer, String> noPmdComments = Collections.emptyMap();

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.Block;
public class ASTBlock extends AbstractEcmascriptNode<Block> {
public final class ASTBlock extends AbstractEcmascriptNode<Block> {
ASTBlock(Block block) {
super(block);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.BreakStatement;
public class ASTBreakStatement extends AbstractEcmascriptNode<BreakStatement> {
public final class ASTBreakStatement extends AbstractEcmascriptNode<BreakStatement> {
ASTBreakStatement(BreakStatement breakStatement) {
super(breakStatement);
super.setImage(breakStatement.getBreakLabel() != null ? breakStatement.getBreakLabel().getIdentifier() : null);

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.CatchClause;
public class ASTCatchClause extends AbstractEcmascriptNode<CatchClause> {
public final class ASTCatchClause extends AbstractEcmascriptNode<CatchClause> {
ASTCatchClause(CatchClause catchClause) {
super(catchClause);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.Comment;
public class ASTComment extends AbstractEcmascriptNode<Comment> {
public final class ASTComment extends AbstractEcmascriptNode<Comment> {
ASTComment(Comment comment) {
super(comment);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ConditionalExpression;
public class ASTConditionalExpression extends AbstractEcmascriptNode<ConditionalExpression> {
public final class ASTConditionalExpression extends AbstractEcmascriptNode<ConditionalExpression> {
ASTConditionalExpression(ConditionalExpression conditionalExpression) {
super(conditionalExpression);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ContinueStatement;
public class ASTContinueStatement extends AbstractEcmascriptNode<ContinueStatement> {
public final class ASTContinueStatement extends AbstractEcmascriptNode<ContinueStatement> {
ASTContinueStatement(ContinueStatement continueStatement) {
super(continueStatement);
super.setImage(continueStatement.getLabel() != null ? continueStatement.getLabel().getIdentifier() : null);

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.DoLoop;
public class ASTDoLoop extends AbstractEcmascriptNode<DoLoop> {
public final class ASTDoLoop extends AbstractEcmascriptNode<DoLoop> {
ASTDoLoop(DoLoop doLoop) {
super(doLoop);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ElementGet;
public class ASTElementGet extends AbstractEcmascriptNode<ElementGet> {
public final class ASTElementGet extends AbstractEcmascriptNode<ElementGet> {
ASTElementGet(ElementGet elementGet) {
super(elementGet);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.EmptyExpression;
public class ASTEmptyExpression extends AbstractEcmascriptNode<EmptyExpression> {
public final class ASTEmptyExpression extends AbstractEcmascriptNode<EmptyExpression> {
ASTEmptyExpression(EmptyExpression emptyExpression) {
super(emptyExpression);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.EmptyStatement;
public class ASTEmptyStatement extends AbstractEcmascriptNode<EmptyStatement> {
public final class ASTEmptyStatement extends AbstractEcmascriptNode<EmptyStatement> {
ASTEmptyStatement(EmptyStatement emptyStatement) {
super(emptyStatement);
}

View File

@ -7,7 +7,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.Token;
import org.mozilla.javascript.ast.ExpressionStatement;
public class ASTExpressionStatement extends AbstractEcmascriptNode<ExpressionStatement> {
public final class ASTExpressionStatement extends AbstractEcmascriptNode<ExpressionStatement> {
ASTExpressionStatement(ExpressionStatement expressionStatement) {
super(expressionStatement);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ForInLoop;
public class ASTForInLoop extends AbstractEcmascriptNode<ForInLoop> {
public final class ASTForInLoop extends AbstractEcmascriptNode<ForInLoop> {
ASTForInLoop(ForInLoop forInLoop) {
super(forInLoop);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ForLoop;
public class ASTForLoop extends AbstractEcmascriptNode<ForLoop> {
public final class ASTForLoop extends AbstractEcmascriptNode<ForLoop> {
ASTForLoop(ForLoop forLoop) {
super(forLoop);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.FunctionCall;
public class ASTFunctionCall extends AbstractEcmascriptNode<FunctionCall> {
public final class ASTFunctionCall extends AbstractEcmascriptNode<FunctionCall> {
ASTFunctionCall(FunctionCall functionCall) {
super(functionCall);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.FunctionNode;
public class ASTFunctionNode extends AbstractEcmascriptNode<FunctionNode> {
public final class ASTFunctionNode extends AbstractEcmascriptNode<FunctionNode> {
ASTFunctionNode(FunctionNode functionNode) {
super(functionNode);
super.setImage(functionNode.getName());

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.IfStatement;
public class ASTIfStatement extends AbstractEcmascriptNode<IfStatement> {
public final class ASTIfStatement extends AbstractEcmascriptNode<IfStatement> {
ASTIfStatement(IfStatement ifStatement) {
super(ifStatement);
}

View File

@ -9,7 +9,7 @@ import java.util.Locale;
import org.mozilla.javascript.Token;
import org.mozilla.javascript.ast.KeywordLiteral;
public class ASTKeywordLiteral extends AbstractEcmascriptNode<KeywordLiteral> {
public final class ASTKeywordLiteral extends AbstractEcmascriptNode<KeywordLiteral> {
ASTKeywordLiteral(KeywordLiteral keywordLiteral) {
super(keywordLiteral);
super.setImage(Token.typeToName(keywordLiteral.getType()).toLowerCase(Locale.ROOT));

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.Label;
public class ASTLabel extends AbstractEcmascriptNode<Label> {
public final class ASTLabel extends AbstractEcmascriptNode<Label> {
ASTLabel(Label label) {
super(label);
super.setImage(label.getName());

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.LabeledStatement;
public class ASTLabeledStatement extends AbstractEcmascriptNode<LabeledStatement> {
public final class ASTLabeledStatement extends AbstractEcmascriptNode<LabeledStatement> {
ASTLabeledStatement(LabeledStatement labeledStatement) {
super(labeledStatement);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.LetNode;
public class ASTLetNode extends AbstractEcmascriptNode<LetNode> {
public final class ASTLetNode extends AbstractEcmascriptNode<LetNode> {
ASTLetNode(LetNode letNode) {
super(letNode);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.Name;
public class ASTName extends AbstractEcmascriptNode<Name> {
public final class ASTName extends AbstractEcmascriptNode<Name> {
ASTName(Name name) {
super(name);
super.setImage(name.getIdentifier());

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.NewExpression;
public class ASTNewExpression extends AbstractEcmascriptNode<NewExpression> {
public final class ASTNewExpression extends AbstractEcmascriptNode<NewExpression> {
ASTNewExpression(NewExpression newExpression) {
super(newExpression);
}

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.NumberLiteral;
public class ASTNumberLiteral extends AbstractEcmascriptNode<NumberLiteral> {
public final class ASTNumberLiteral extends AbstractEcmascriptNode<NumberLiteral> {
ASTNumberLiteral(NumberLiteral numberLiteral) {
super(numberLiteral);
super.setImage(numberLiteral.getValue());

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ObjectLiteral;
public class ASTObjectLiteral extends AbstractEcmascriptNode<ObjectLiteral>
public final class ASTObjectLiteral extends AbstractEcmascriptNode<ObjectLiteral>
implements DestructuringNode, TrailingCommaNode {
private boolean trailingComma;

View File

@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.ast.ObjectProperty;
public class ASTObjectProperty extends AbstractInfixEcmascriptNode<ObjectProperty> {
public final class ASTObjectProperty extends AbstractInfixEcmascriptNode<ObjectProperty> {
ASTObjectProperty(ObjectProperty objectProperty) {
super(objectProperty);
}

Some files were not shown because too many files have changed in this diff Show More