public class ArrayPathToken extends PathToken
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkArrayModel(String currentPath,
Object model,
EvaluationContextImpl ctx)
Check if model is non-null and array.
|
void |
evaluate(String currentPath,
PathRef parent,
Object model,
EvaluationContextImpl ctx) |
void |
evaluateIndexOperation(String currentPath,
PathRef parent,
Object model,
EvaluationContextImpl ctx) |
void |
evaluateSliceOperation(String currentPath,
PathRef parent,
Object model,
EvaluationContextImpl ctx) |
String |
getPathFragment() |
boolean |
isTokenDefinite() |
void |
sliceBetween(ArraySliceOperation operation,
String currentPath,
PathRef parent,
Object model,
EvaluationContextImpl ctx) |
void |
sliceFrom(ArraySliceOperation operation,
String currentPath,
PathRef parent,
Object model,
EvaluationContextImpl ctx) |
void |
sliceTo(ArraySliceOperation operation,
String currentPath,
PathRef parent,
Object model,
EvaluationContextImpl ctx) |
equals, getTokenCount, handleArrayIndex, hashCode, invoke, isPathDefinite, toString
public void evaluate(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
public void evaluateIndexOperation(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
public void evaluateSliceOperation(String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
public void sliceFrom(ArraySliceOperation operation, String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
public void sliceBetween(ArraySliceOperation operation, String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
public void sliceTo(ArraySliceOperation operation, String currentPath, PathRef parent, Object model, EvaluationContextImpl ctx)
public String getPathFragment()
getPathFragment
in class PathToken
public boolean isTokenDefinite()
isTokenDefinite
in class PathToken
protected boolean checkArrayModel(String currentPath, Object model, EvaluationContextImpl ctx)
currentPath
- model
- ctx
- PathNotFoundException
- if model is null and evaluation must be interruptedInvalidPathException
- if model is not an array and evaluation must be interruptedCopyright © 2024. All rights reserved.