public class PBodyNormalizer extends PDisjunctionRewriter
| Modifier and Type | Field and Description |
|---|---|
boolean |
calcImpliedTypes
If set to true, shrinks the net by avoiding unnecessary typechecks
|
| Constructor and Description |
|---|
PBodyNormalizer(IQueryMetaContext context) |
PBodyNormalizer(IQueryMetaContext context,
boolean calculateImpliedTypes) |
| Modifier and Type | Method and Description |
|---|---|
PBody |
normalizeBody(PBody body)
Provides a normalized version of the pattern body.
|
PDisjunction |
rewrite(PDisjunction disjunction) |
void |
setContext(IQueryMetaContext context) |
rewritepublic boolean calcImpliedTypes
public PBodyNormalizer(IQueryMetaContext context)
public PBodyNormalizer(IQueryMetaContext context, boolean calculateImpliedTypes)
calculateImpliedTypes - If set to true, shrinks the net by avoiding unnecessary typecheckspublic PDisjunction rewrite(PDisjunction disjunction) throws RewriterException
rewrite in class PDisjunctionRewriterRewriterExceptionpublic void setContext(IQueryMetaContext context)
public PBody normalizeBody(PBody body) throws RewriterException
body - RewriterException