Top Description Constructors Methods
org.jabref.search

public Class SearchBaseVisitor<T>

extends AbstractParseTreeVisitor<T>
implements SearchVisitor<T>
Class Inheritance
All Implemented Interfaces
org.jabref.search.SearchVisitor, org.antlr.v4.runtime.tree.ParseTreeVisitor
Known Direct Subclasses
org.jabref.gui.search.rules.describer.GrammarBasedSearchRuleDescriber.DescriptionSearchBaseVisitor, org.jabref.model.search.rules.GrammarBasedSearchRule.BibtexSearchVisitor
Annotations
@SuppressWarnings:CheckReturnValue
Type Parameters
<T>
The return type of the visit operation. Use Void for operations with no return type.
Imports
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor

This class provides an empty implementation of SearchVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public T
visitAtomExpression(SearchParser.AtomExpressionContext
the parse tree
ctx
)

Implements org.jabref.search.SearchVisitor.visitAtomExpression.

Visit a parse tree produced by the atomExpression labeled alternative in SearchParser#expression.

public T
visitBinaryExpression(SearchParser.BinaryExpressionContext
the parse tree
ctx
)

Implements org.jabref.search.SearchVisitor.visitBinaryExpression.

Visit a parse tree produced by the binaryExpression labeled alternative in SearchParser#expression.

public T
public T
visitName(SearchParser.NameContext
the parse tree
ctx
)

Implements org.jabref.search.SearchVisitor.visitName.

Visit a parse tree produced by SearchParser#name.

public T
visitParenExpression(SearchParser.ParenExpressionContext
the parse tree
ctx
)

Implements org.jabref.search.SearchVisitor.visitParenExpression.

Visit a parse tree produced by the parenExpression labeled alternative in SearchParser#expression.

public T
visitStart(SearchParser.StartContext
the parse tree
ctx
)

Implements org.jabref.search.SearchVisitor.visitStart.

Visit a parse tree produced by SearchParser#start.

public T
visitUnaryExpression(SearchParser.UnaryExpressionContext
the parse tree
ctx
)

Implements org.jabref.search.SearchVisitor.visitUnaryExpression.

Visit a parse tree produced by the unaryExpression labeled alternative in SearchParser#expression.

Inherited from org.antlr.v4.runtime.tree.AbstractParseTreeVisitor:
aggregateResultdefaultResultshouldVisitNextChildvisitvisitChildrenvisitErrorNodevisitTerminal

Constructor Detail

SearchBaseVisitorback to summary
public SearchBaseVisitor()

Method Detail

visitAtomExpressionback to summary
public T visitAtomExpression(SearchParser.AtomExpressionContext ctx)

Implements org.jabref.search.SearchVisitor.visitAtomExpression.

Doc from org.jabref.search.SearchVisitor.visitAtomExpression.

Visit a parse tree produced by the atomExpression labeled alternative in SearchParser#expression.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.AtomExpressionContext

the parse tree

Returns:T

the visitor result

Annotations
@Override
visitBinaryExpressionback to summary
public T visitBinaryExpression(SearchParser.BinaryExpressionContext ctx)

Implements org.jabref.search.SearchVisitor.visitBinaryExpression.

Doc from org.jabref.search.SearchVisitor.visitBinaryExpression.

Visit a parse tree produced by the binaryExpression labeled alternative in SearchParser#expression.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.BinaryExpressionContext

the parse tree

Returns:T

the visitor result

Annotations
@Override
visitComparisonback to summary
public T visitComparison(SearchParser.ComparisonContext ctx)

Implements org.jabref.search.SearchVisitor.visitComparison.

Doc from org.jabref.search.SearchVisitor.visitComparison.

Visit a parse tree produced by SearchParser#comparison.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.ComparisonContext

the parse tree

Returns:T

the visitor result

Annotations
@Override
visitNameback to summary
public T visitName(SearchParser.NameContext ctx)

Implements org.jabref.search.SearchVisitor.visitName.

Doc from org.jabref.search.SearchVisitor.visitName.

Visit a parse tree produced by SearchParser#name.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.NameContext

the parse tree

Returns:T

the visitor result

Annotations
@Override
visitParenExpressionback to summary
public T visitParenExpression(SearchParser.ParenExpressionContext ctx)

Implements org.jabref.search.SearchVisitor.visitParenExpression.

Doc from org.jabref.search.SearchVisitor.visitParenExpression.

Visit a parse tree produced by the parenExpression labeled alternative in SearchParser#expression.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.ParenExpressionContext

the parse tree

Returns:T

the visitor result

Annotations
@Override
visitStartback to summary
public T visitStart(SearchParser.StartContext ctx)

Implements org.jabref.search.SearchVisitor.visitStart.

Doc from org.jabref.search.SearchVisitor.visitStart.

Visit a parse tree produced by SearchParser#start.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.StartContext

the parse tree

Returns:T

the visitor result

Annotations
@Override
visitUnaryExpressionback to summary
public T visitUnaryExpression(SearchParser.UnaryExpressionContext ctx)

Implements org.jabref.search.SearchVisitor.visitUnaryExpression.

Doc from org.jabref.search.SearchVisitor.visitUnaryExpression.

Visit a parse tree produced by the unaryExpression labeled alternative in SearchParser#expression.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:SearchParser.UnaryExpressionContext

the parse tree

Returns:T

the visitor result

Annotations
@Override