|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.engine.Rename
public class Rename
Support for renamign all the variables in an algebra expession except for a fixed set to leave alone
| Constructor Summary | |
|---|---|
Rename()
|
|
| Method Summary | |
|---|---|
static Var |
chooseVarName(Var var,
Collection<Var> inUse,
String prefix)
Given an old name, and some names already in use, pick a fresh, new name |
static Op |
renameNode(Op op,
com.hp.hpl.jena.graph.Node oldName,
com.hp.hpl.jena.graph.Node newName)
Rename one node to another |
static Op |
renameVar(Op op,
Var oldName,
Var newName)
Rename one variable to another |
static ExprList |
renameVars(ExprList exprList,
Set<Var> constants)
Rename all variables in an expression, EXCEPT for those named as constant |
static Expr |
renameVars(Expr expr,
Set<Var> constants)
|
static Op |
renameVars(Op op,
Collection<Var> constants)
Rename all variables in a pattern, EXCEPT for those named as constant |
static Op |
reverseVarRename(Op op,
boolean repeatedly)
Undo the effect of the rename operation, once or repeatedly. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rename()
| Method Detail |
|---|
public static Var chooseVarName(Var var,
Collection<Var> inUse,
String prefix)
public static Op renameNode(Op op,
com.hp.hpl.jena.graph.Node oldName,
com.hp.hpl.jena.graph.Node newName)
public static Op renameVar(Op op,
Var oldName,
Var newName)
public static Op renameVars(Op op,
Collection<Var> constants)
public static ExprList renameVars(ExprList exprList,
Set<Var> constants)
public static Expr renameVars(Expr expr,
Set<Var> constants)
public static Op reverseVarRename(Op op,
boolean repeatedly)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||