Class PathNormalizer
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.normalizer.xexpr.PathNormalizer
-
- All Implemented Interfaces:
PathVisitor
public class PathNormalizer extends Object implements PathVisitor
Class used to normalize path expressions.- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description PathNormalizer(NodeExprNormalizer nzer)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getResult()
void
visit(P_Alt pathAlt)
void
visit(P_Distinct pathDistinct)
void
visit(P_FixedLength pFixedLength)
void
visit(P_Inverse inversePath)
void
visit(P_Link pathNode)
void
visit(P_Mod pathMod)
void
visit(P_Multi pathMulti)
void
visit(P_NegPropSet pathNotOneOf)
void
visit(P_OneOrMore1 path)
void
visit(P_OneOrMoreN path)
void
visit(P_ReverseLink pathNode)
void
visit(P_Seq pathSeq)
void
visit(P_Shortest pathShortest)
void
visit(P_ZeroOrMore1 path)
void
visit(P_ZeroOrMoreN path)
void
visit(P_ZeroOrOne path)
-
-
-
Constructor Detail
-
PathNormalizer
public PathNormalizer(NodeExprNormalizer nzer)
Constructor- Parameters:
nzer
-
-
-
Method Detail
-
getResult
public Path getResult()
- Returns:
- latest normalized path
-
visit
public void visit(P_Link pathNode)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_ReverseLink pathNode)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_NegPropSet pathNotOneOf)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Inverse inversePath)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Mod pathMod)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_FixedLength pFixedLength)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Distinct pathDistinct)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Multi pathMulti)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Shortest pathShortest)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_ZeroOrOne path)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_ZeroOrMore1 path)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_ZeroOrMoreN path)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_OneOrMore1 path)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_OneOrMoreN path)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Alt pathAlt)
- Specified by:
visit
in interfacePathVisitor
-
visit
public void visit(P_Seq pathSeq)
- Specified by:
visit
in interfacePathVisitor
-
-