| |
|
| java.lang.Object xtc.typical.Reduction
Reduction | public class Reduction (Code) | | A Typical Reduction
author: Laune Harris version: $Revision: 1.22 $ |
dup | protected boolean dup(Code) | | This flag indicates that the reduction has a 'duplicate' constraint
|
error | protected boolean error(Code) | | Flag indicating that we've seen an error
|
list | protected boolean list(Code) | | This flag indicates that the reduction has a 'list' constraint
|
location | protected Node location(Code) | | The location node
|
nodup | protected boolean nodup(Code) | | This flag indicates that the reduction has a 'noduplicate' constraint
|
opt | protected boolean opt(Code) | | This flag indicates that the reduction has a 'optional' constraint
|
req | protected boolean req(Code) | | This flag indicates that the reduction has a 'required' constraint
|
set | protected boolean set(Code) | | This flag indicates that the reduction has a 'set' constraint
|
sing | protected boolean sing(Code) | | This flag indicates that the reduction has a 'singleton' constraint
|
tag | protected String tag(Code) | | This is the string value used for error reporting
|
apply | public Object apply()(Code) | | Apply the reduction.
The given result value if the reduction is sucessful,null otherwise |
getMatch | public Node getMatch(Analyzer.NodeMatch nm)(Code) | | Return the node that matches a given pattern. This is useful for
as pattern.
the matching node |
setDup | public void setDup()(Code) | | set list to true
|
setList | public void setList()(Code) | | set list to true
|
setNodup | public void setNodup()(Code) | | set list to true
|
setOpt | public void setOpt()(Code) | | set opt to true
|
setReq | public void setReq()(Code) | | set list to true
|
setSet | public void setSet()(Code) | | set list to true
|
setSing | public void setSing()(Code) | | set list to true
|
setTag | public void setTag(String tag)(Code) | | set the tag
Parameters: tag - the tag to set |
|
|
|