public class RuleDescrBuilderImpl extends BaseDescrBuilderImpl<PackageDescrBuilder,RuleDescr> implements RuleDescrBuilder
descr, parent| Modifier | Constructor and Description |
|---|---|
protected |
RuleDescrBuilderImpl(PackageDescrBuilder parent) |
| Modifier and Type | Method and Description |
|---|---|
AttributeDescrBuilder<RuleDescrBuilder> |
attribute(String name)
Adds a new attribute to the statement
|
RuleDescrBuilder |
attribute(String name,
String value)
Adds a new attribute with the given name and value
|
RuleDescrBuilder |
attribute(String name,
String value,
AttributeDescr.Type type)
Adds a new attribute with the given name and value
|
RuleDescrBuilder |
extendsRule(String name)
Defines the name of the rule this rule extends.
|
CEDescrBuilder<RuleDescrBuilder,AndDescr> |
lhs()
Defines the LHS (condition) of the rule.
|
RuleDescrBuilder |
name(String name)
The name of the rule.
|
RuleDescrBuilder |
namedRhs(String name,
String rhs)
An additional named right hand side (consequence) of the rule.
|
AnnotationDescrBuilder<RuleDescrBuilder> |
newAnnotation(String name) |
RuleDescrBuilder |
rhs(String rhs)
The default right hand side (consequence) of the rule.
|
end, endCharacter, endLocation, getDescr, startCharacter, startLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitend, endCharacter, endLocation, getDescr, startCharacter, startLocationprotected RuleDescrBuilderImpl(PackageDescrBuilder parent)
public AnnotationDescrBuilder<RuleDescrBuilder> newAnnotation(String name)
newAnnotation in interface AnnotatedDescrBuilder<RuleDescrBuilder>public AttributeDescrBuilder<RuleDescrBuilder> attribute(String name)
AttributeSupportBuilderattribute in interface AttributeSupportBuilder<RuleDescrBuilder>name - the attribute namepublic RuleDescrBuilder name(String name)
RuleDescrBuildername in interface RuleDescrBuildername - name of the rulepublic RuleDescrBuilder extendsRule(String name)
RuleDescrBuilderextendsRule in interface RuleDescrBuildername - name of the parent rulepublic RuleDescrBuilder rhs(String rhs)
RuleDescrBuilderrhs in interface RuleDescrBuilderrhs - the code blockpublic RuleDescrBuilder namedRhs(String name, String rhs)
RuleDescrBuildernamedRhs in interface RuleDescrBuildername - the name of the consequencerhs - the code blockpublic CEDescrBuilder<RuleDescrBuilder,AndDescr> lhs()
RuleDescrBuilderlhs in interface RuleDescrBuilderpublic RuleDescrBuilder attribute(String name, String value)
AttributeSupportBuilderattribute in interface AttributeSupportBuilder<RuleDescrBuilder>name - the name of the attribute to be addedvalue - the value of the attribute to be addedpublic RuleDescrBuilder attribute(String name, String value, AttributeDescr.Type type)
AttributeSupportBuilderattribute in interface AttributeSupportBuilder<RuleDescrBuilder>name - the name of the attribute to be addedvalue - the value of the attribute to be addedtype - the type of the value of the attribute. See AttributeDescr.TypeCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.