Package com.tonic.analysis.query.ast
Class Accessor
- java.lang.Object
-
- com.tonic.analysis.query.ast.Accessor
-
-
Constructor Detail
-
Accessor
public Accessor(List<Step> steps)
Creates an accessor from a non-empty step path.- Parameters:
steps- the projection steps, copied defensively- Throws:
IllegalArgumentException- if steps is empty
-
-
Method Detail
-
first
public Step first()
- Returns:
- the first step of the path
-
-