Fix visitor - the jjtAccept methods have to be in the
concrete subclasses
This commit is contained in:
@ -10,4 +10,14 @@ public class ASTAnnotation extends AbstractApexNode<Annotation> {
|
||||
public ASTAnnotation(Annotation annotation) {
|
||||
super(annotation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,14 @@ public class ASTAnnotationParameter extends AbstractApexNode<AnnotationParameter
|
||||
public ASTAnnotationParameter(AnnotationParameter annotationParameter) {
|
||||
super(annotationParameter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -12,6 +12,17 @@ public class ASTAnonymousClass extends AbstractApexNode<AnonymousClass> implemen
|
||||
super(anonymousClass);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getImage() {
|
||||
return node.getClass().getName();
|
||||
|
@ -7,4 +7,14 @@ public class ASTArrayLoadExpression extends AbstractApexNode<ArrayLoadExpression
|
||||
public ASTArrayLoadExpression(ArrayLoadExpression arrayLoadExpression) {
|
||||
super(arrayLoadExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTArrayStoreExpression extends AbstractApexNode<ArrayStoreExpressi
|
||||
public ASTArrayStoreExpression(ArrayStoreExpression arrayStoreExpression) {
|
||||
super(arrayStoreExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTAssignmentExpression extends AbstractApexNode<AssignmentExpressi
|
||||
public ASTAssignmentExpression(AssignmentExpression assignmentExpression) {
|
||||
super(assignmentExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTBinaryExpression extends AbstractApexNode<BinaryExpression> {
|
||||
public ASTBinaryExpression(BinaryExpression binaryExpression) {
|
||||
super(binaryExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTBindExpressions extends AbstractApexNode<BindExpressions> {
|
||||
public ASTBindExpressions(BindExpressions bindExpressions) {
|
||||
super(bindExpressions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -10,4 +10,14 @@ public class ASTBlockStatement extends AbstractApexNode<BlockStatement> {
|
||||
public ASTBlockStatement(BlockStatement blockStatement) {
|
||||
super(blockStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,14 @@ public class ASTBooleanExpression extends AbstractApexNode<BooleanExpression> {
|
||||
public ASTBooleanExpression(BooleanExpression booleanExpression) {
|
||||
super(booleanExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -10,4 +10,14 @@ public class ASTBreakStatement extends AbstractApexNode<BreakStatement> {
|
||||
public ASTBreakStatement(BreakStatement breakStatement) {
|
||||
super(breakStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTBridgeMethodCreator extends AbstractApexNode<BridgeMethodCreator
|
||||
public ASTBridgeMethodCreator(BridgeMethodCreator bridgeMethodCreator) {
|
||||
super(bridgeMethodCreator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTCatchBlockStatement extends AbstractApexNode<CatchBlockStatement
|
||||
public ASTCatchBlockStatement(CatchBlockStatement catchBlockStatement) {
|
||||
super(catchBlockStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,14 @@ public class ASTClassRefExpression extends AbstractApexNode<ClassRefExpression>
|
||||
public ASTClassRefExpression(ClassRefExpression classRefExpression) {
|
||||
super(classRefExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -15,4 +15,14 @@ public class ASTCompilation extends AbstractApexNode<Compilation> implements Roo
|
||||
public String getImage() {
|
||||
return node.getClass().getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,14 @@ public class ASTConstructorPreambleStatement extends AbstractApexNode<Constructo
|
||||
public ASTConstructorPreambleStatement(ConstructorPreambleStatement constructorPreambleStatement) {
|
||||
super(constructorPreambleStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -10,4 +10,14 @@ public class ASTContinueStatement extends AbstractApexNode<ContinueStatement> {
|
||||
public ASTContinueStatement(ContinueStatement continueStatement) {
|
||||
super(continueStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDmlDeleteStatement extends AbstractApexNode<DmlDeleteStatement>
|
||||
public ASTDmlDeleteStatement(DmlDeleteStatement dmlDeleteStatement) {
|
||||
super(dmlDeleteStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDmlInsertStatement extends AbstractApexNode<DmlInsertStatement>
|
||||
public ASTDmlInsertStatement(DmlInsertStatement dmlInsertStatement) {
|
||||
super(dmlInsertStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDmlMergeStatement extends AbstractApexNode<DmlMergeStatement> {
|
||||
public ASTDmlMergeStatement(DmlMergeStatement dmlMergeStatement) {
|
||||
super(dmlMergeStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDmlUndeleteStatement extends AbstractApexNode<DmlUndeleteStateme
|
||||
public ASTDmlUndeleteStatement(DmlUndeleteStatement dmlUndeleteStatement) {
|
||||
super(dmlUndeleteStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDmlUpdateStatement extends AbstractApexNode<DmlUpdateStatement>
|
||||
public ASTDmlUpdateStatement(DmlUpdateStatement dmlUpdateStatement) {
|
||||
super(dmlUpdateStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDmlUpsertStatement extends AbstractApexNode<DmlUpsertStatement>
|
||||
public ASTDmlUpsertStatement(DmlUpsertStatement dmlUpsertStatement) {
|
||||
super(dmlUpsertStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,14 @@ public class ASTDoLoopStatement extends AbstractApexNode<DoLoopStatement> {
|
||||
public ASTDoLoopStatement(DoLoopStatement doLoopStatement) {
|
||||
super(doLoopStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,14 @@ public class ASTDottedExpression extends AbstractApexNode<DottedExpression> {
|
||||
public ASTDottedExpression(DottedExpression dottedExpression) {
|
||||
super(dottedExpression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTExpression extends AbstractApexNode<Expression> {
|
||||
public ASTExpression(Expression expression) {
|
||||
super(expression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTExpressionStatement extends AbstractApexNode<ExpressionStatement
|
||||
public ASTExpressionStatement(ExpressionStatement expressionStatement) {
|
||||
super(expressionStatement);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,16 @@ public class ASTField extends AbstractApexNode<Field> {
|
||||
super(field);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getImage() {
|
||||
return node.getFieldInfo().getName();
|
||||
|
@ -7,4 +7,14 @@ public class ASTFieldDeclaration extends AbstractApexNode<FieldDeclaration> {
|
||||
public ASTFieldDeclaration(FieldDeclaration fieldDeclaration) {
|
||||
super(fieldDeclaration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
@ -7,4 +7,14 @@ public class ASTFieldDeclarationStatements extends AbstractApexNode<FieldDeclara
|
||||
public ASTFieldDeclarationStatements(FieldDeclarationStatements fieldDeclarationStatements) {
|
||||
super(fieldDeclarationStatements);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accept the visitor.
|
||||
* Note: This needs to be in each concrete node class, as otherwise
|
||||
* the visitor won't work - as java resolves the type "this" at compile
|
||||
* time.
|
||||
*/
|
||||
public Object jjtAccept(ApexParserVisitor visitor, Object data) {
|
||||
return visitor.visit(this, data);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user