forked from phoedos/pmd
Make JS ast nodes final
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
Reference in New Issue
Block a user