public class SourcePositionsWorker extends PropertyWorker<Node>
properties
messages, tree
Constructor and Description |
---|
SourcePositionsWorker(ParseTree tree,
List<String> sourceImageNames) |
Modifier and Type | Method and Description |
---|---|
protected Expression[] |
asExpressions(List<JiffleParser.ExpressionContext> ctxs) |
void |
exitAndExpr(JiffleParser.AndExprContext ctx)
Exit a parse tree produced by the
andExpr
labeled alternative in JiffleParser.expression() . |
void |
exitAtom(JiffleParser.AtomContext ctx)
Exit a parse tree produced by
JiffleParser.atom() . |
void |
exitAtomExpr(JiffleParser.AtomExprContext ctx)
Exit a parse tree produced by the
atomExpr
labeled alternative in JiffleParser.expression() . |
void |
exitBandSpecifier(JiffleParser.BandSpecifierContext ctx)
Exit a parse tree produced by
JiffleParser.bandSpecifier() . |
void |
exitCompareExpr(JiffleParser.CompareExprContext ctx)
Exit a parse tree produced by the
compareExpr
labeled alternative in JiffleParser.expression() . |
void |
exitConCall(JiffleParser.ConCallContext ctx)
Exit a parse tree produced by
JiffleParser.conCall() . |
void |
exitEqExpr(JiffleParser.EqExprContext ctx)
Exit a parse tree produced by the
eqExpr
labeled alternative in JiffleParser.expression() . |
void |
exitFunctionCall(JiffleParser.FunctionCallContext ctx)
Exit a parse tree produced by the
functionCall
labeled alternative in JiffleParser.identifiedAtom() . |
void |
exitImageCall(JiffleParser.ImageCallContext ctx)
Exit a parse tree produced by the
imageCall
labeled alternative in JiffleParser.identifiedAtom() . |
void |
exitImagePos(JiffleParser.ImagePosContext ctx)
Exit a parse tree produced by
JiffleParser.imagePos() . |
void |
exitListLiteral(JiffleParser.ListLiteralContext ctx)
Exit a parse tree produced by
JiffleParser.listLiteral() . |
void |
exitLiteral(JiffleParser.LiteralContext ctx)
Exit a parse tree produced by
JiffleParser.literal() . |
void |
exitNotExpr(JiffleParser.NotExprContext ctx)
Exit a parse tree produced by the
notExpr
labeled alternative in JiffleParser.expression() . |
void |
exitOrExpr(JiffleParser.OrExprContext ctx)
Exit a parse tree produced by the
orExpr
labeled alternative in JiffleParser.expression() . |
void |
exitParenExpression(JiffleParser.ParenExpressionContext ctx)
Exit a parse tree produced by
JiffleParser.parenExpression() . |
void |
exitPixelSpecifier(JiffleParser.PixelSpecifierContext ctx)
Exit a parse tree produced by
JiffleParser.pixelSpecifier() . |
void |
exitPlusMinusExpr(JiffleParser.PlusMinusExprContext ctx)
Exit a parse tree produced by the
plusMinusExpr
labeled alternative in JiffleParser.expression() . |
void |
exitPostExpr(JiffleParser.PostExprContext ctx)
Exit a parse tree produced by the
postExpr
labeled alternative in JiffleParser.expression() . |
void |
exitPowExpr(JiffleParser.PowExprContext ctx)
Exit a parse tree produced by the
powExpr
labeled alternative in JiffleParser.expression() . |
void |
exitPreExpr(JiffleParser.PreExprContext ctx)
Exit a parse tree produced by the
preExpr
labeled alternative in JiffleParser.expression() . |
void |
exitTernaryExpr(JiffleParser.TernaryExprContext ctx)
Exit a parse tree produced by the
ternaryExpr
labeled alternative in JiffleParser.expression() . |
void |
exitTimesDivModExpr(JiffleParser.TimesDivModExprContext ctx)
Exit a parse tree produced by the
timesDivModExpr
labeled alternative in JiffleParser.expression() . |
void |
exitVarID(JiffleParser.VarIDContext ctx)
Exit a parse tree produced by the
varID
labeled alternative in JiffleParser.identifiedAtom() . |
void |
exitXorExpr(JiffleParser.XorExprContext ctx)
Exit a parse tree produced by the
xorExpr
labeled alternative in JiffleParser.expression() . |
protected <N extends Node> |
getAsType(ParseTree ctx,
Class<N> clazz) |
Set<GetSourceValue> |
getPositions()
Returns all the unique read calls found in the source
|
protected SymbolScope |
getScope(ParseTree ctx) |
get, getOrElse, getProperties, set
walkTree
enterAndExpr, enterArgumentList, enterAssignExpr, enterAssignment, enterAtom, enterAtomExpr, enterBandSpecifier, enterBlock, enterBlockStmt, enterBody, enterBreakifStmt, enterBreakStmt, enterCompareExpr, enterConCall, enterEmptyStmt, enterEqExpr, enterEveryRule, enterExpressionList, enterExprStmt, enterForeachStmt, enterFunctionCall, enterIfStmt, enterImageCall, enterImagePos, enterImagesBlock, enterImageVarDeclaration, enterInitBlock, enterListAppendStmt, enterListLiteral, enterLiteral, enterLoopSet, enterNotExpr, enterOption, enterOptionsBlock, enterOptionValue, enterOrExpr, enterParenExpression, enterPixelPos, enterPixelSpecifier, enterPlusMinusExpr, enterPostExpr, enterPowExpr, enterPreExpr, enterRange, enterRole, enterScript, enterSpecialBlock, enterTernaryExpr, enterTimesDivModExpr, enterUntilStmt, enterVarDeclaration, enterVarID, enterWhileStmt, enterXorExpr, exitArgumentList, exitAssignExpr, exitAssignment, exitBlock, exitBlockStmt, exitBody, exitBreakifStmt, exitBreakStmt, exitEmptyStmt, exitEveryRule, exitExpressionList, exitExprStmt, exitForeachStmt, exitIfStmt, exitImagesBlock, exitImageVarDeclaration, exitInitBlock, exitListAppendStmt, exitLoopSet, exitOption, exitOptionsBlock, exitOptionValue, exitPixelPos, exitRange, exitRole, exitScript, exitSpecialBlock, exitUntilStmt, exitVarDeclaration, exitWhileStmt, visitErrorNode, visitTerminal
public void exitVarID(JiffleParser.VarIDContext ctx)
JiffleBaseListener
varID
labeled alternative in JiffleParser.identifiedAtom()
.
The default implementation does nothing.
exitVarID
in interface JiffleListener
ctx
- the parse treepublic void exitImageCall(JiffleParser.ImageCallContext ctx)
JiffleBaseListener
imageCall
labeled alternative in JiffleParser.identifiedAtom()
.
The default implementation does nothing.
exitImageCall
in interface JiffleListener
ctx
- the parse treeprotected SymbolScope getScope(ParseTree ctx)
public Set<GetSourceValue> getPositions()
public void exitAtomExpr(JiffleParser.AtomExprContext ctx)
JiffleBaseListener
atomExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitAtomExpr
in interface JiffleListener
exitAtomExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitPowExpr(JiffleParser.PowExprContext ctx)
JiffleBaseListener
powExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitPowExpr
in interface JiffleListener
exitPowExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitPostExpr(JiffleParser.PostExprContext ctx)
JiffleBaseListener
postExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitPostExpr
in interface JiffleListener
exitPostExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitPreExpr(JiffleParser.PreExprContext ctx)
JiffleBaseListener
preExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitPreExpr
in interface JiffleListener
exitPreExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitNotExpr(JiffleParser.NotExprContext ctx)
JiffleBaseListener
notExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitNotExpr
in interface JiffleListener
exitNotExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitTimesDivModExpr(JiffleParser.TimesDivModExprContext ctx)
JiffleBaseListener
timesDivModExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitTimesDivModExpr
in interface JiffleListener
exitTimesDivModExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitPlusMinusExpr(JiffleParser.PlusMinusExprContext ctx)
JiffleBaseListener
plusMinusExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitPlusMinusExpr
in interface JiffleListener
exitPlusMinusExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitCompareExpr(JiffleParser.CompareExprContext ctx)
JiffleBaseListener
compareExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitCompareExpr
in interface JiffleListener
exitCompareExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitEqExpr(JiffleParser.EqExprContext ctx)
JiffleBaseListener
eqExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitEqExpr
in interface JiffleListener
exitEqExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitAndExpr(JiffleParser.AndExprContext ctx)
JiffleBaseListener
andExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitAndExpr
in interface JiffleListener
exitAndExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitOrExpr(JiffleParser.OrExprContext ctx)
JiffleBaseListener
orExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitOrExpr
in interface JiffleListener
exitOrExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitXorExpr(JiffleParser.XorExprContext ctx)
JiffleBaseListener
xorExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitXorExpr
in interface JiffleListener
exitXorExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitTernaryExpr(JiffleParser.TernaryExprContext ctx)
JiffleBaseListener
ternaryExpr
labeled alternative in JiffleParser.expression()
.
The default implementation does nothing.
exitTernaryExpr
in interface JiffleListener
exitTernaryExpr
in class JiffleBaseListener
ctx
- the parse treepublic void exitAtom(JiffleParser.AtomContext ctx)
JiffleBaseListener
JiffleParser.atom()
.
The default implementation does nothing.
exitAtom
in interface JiffleListener
exitAtom
in class JiffleBaseListener
ctx
- the parse treepublic void exitFunctionCall(JiffleParser.FunctionCallContext ctx)
JiffleBaseListener
functionCall
labeled alternative in JiffleParser.identifiedAtom()
.
The default implementation does nothing.
exitFunctionCall
in interface JiffleListener
exitFunctionCall
in class JiffleBaseListener
ctx
- the parse treepublic void exitConCall(JiffleParser.ConCallContext ctx)
JiffleBaseListener
JiffleParser.conCall()
.
The default implementation does nothing.
exitConCall
in interface JiffleListener
exitConCall
in class JiffleBaseListener
ctx
- the parse treepublic void exitParenExpression(JiffleParser.ParenExpressionContext ctx)
JiffleBaseListener
JiffleParser.parenExpression()
.
The default implementation does nothing.
exitParenExpression
in interface JiffleListener
exitParenExpression
in class JiffleBaseListener
ctx
- the parse treepublic void exitImagePos(JiffleParser.ImagePosContext ctx)
JiffleBaseListener
JiffleParser.imagePos()
.
The default implementation does nothing.
exitImagePos
in interface JiffleListener
exitImagePos
in class JiffleBaseListener
ctx
- the parse treepublic void exitBandSpecifier(JiffleParser.BandSpecifierContext ctx)
JiffleBaseListener
JiffleParser.bandSpecifier()
.
The default implementation does nothing.
exitBandSpecifier
in interface JiffleListener
exitBandSpecifier
in class JiffleBaseListener
ctx
- the parse treepublic void exitPixelSpecifier(JiffleParser.PixelSpecifierContext ctx)
JiffleBaseListener
JiffleParser.pixelSpecifier()
.
The default implementation does nothing.
exitPixelSpecifier
in interface JiffleListener
exitPixelSpecifier
in class JiffleBaseListener
ctx
- the parse treepublic void exitLiteral(JiffleParser.LiteralContext ctx)
JiffleBaseListener
JiffleParser.literal()
.
The default implementation does nothing.
exitLiteral
in interface JiffleListener
exitLiteral
in class JiffleBaseListener
ctx
- the parse treepublic void exitListLiteral(JiffleParser.ListLiteralContext ctx)
JiffleBaseListener
JiffleParser.listLiteral()
.
The default implementation does nothing.
exitListLiteral
in interface JiffleListener
exitListLiteral
in class JiffleBaseListener
ctx
- the parse treeprotected Expression[] asExpressions(List<JiffleParser.ExpressionContext> ctxs)
Copyright © 2006–2018 GeoSolutions. All rights reserved.