public class DescrFieldDefinition extends Object implements FieldDefinition
| Constructor and Description |
|---|
DescrFieldDefinition(String fieldName,
String objectType,
String initExpr) |
DescrFieldDefinition(org.drools.compiler.lang.descr.TypeFieldDescr typeFieldDescr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(AnnotationDefinition annotationDefinition) |
void |
addAnnotation(String name) |
void |
addAnnotation(String name,
String value) |
void |
addPositionAnnotation(int position) |
boolean |
createAccessors() |
List<AnnotationDefinition> |
getFieldAnnotations() |
String |
getFieldName() |
String |
getInitExpr() |
String |
getObjectType() |
boolean |
isFinal() |
boolean |
isKeyField() |
boolean |
isOverride() |
boolean |
isStatic() |
void |
setCreateAccessors(Boolean createAccessors) |
DescrFieldDefinition |
setFinal(Boolean aFinal) |
void |
setKeyField(Boolean keyField) |
DescrFieldDefinition |
setOverride(boolean override) |
DescrFieldDefinition |
setStatic(Boolean aStatic) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJavadocComment, getterAnnotations, overriddenGetterName, overriddenSetterName, setterAnnotationspublic DescrFieldDefinition(String fieldName, String objectType, String initExpr)
public DescrFieldDefinition(org.drools.compiler.lang.descr.TypeFieldDescr typeFieldDescr)
public String getFieldName()
getFieldName in interface FieldDefinitionpublic String getObjectType()
getObjectType in interface FieldDefinitionpublic String getInitExpr()
getInitExpr in interface FieldDefinitionpublic List<AnnotationDefinition> getFieldAnnotations()
getFieldAnnotations in interface FieldDefinitionpublic void addAnnotation(AnnotationDefinition annotationDefinition)
public void addAnnotation(String name)
public void addPositionAnnotation(int position)
public boolean isKeyField()
isKeyField in interface FieldDefinitionpublic void setKeyField(Boolean keyField)
public boolean createAccessors()
createAccessors in interface FieldDefinitionpublic void setCreateAccessors(Boolean createAccessors)
public boolean isStatic()
isStatic in interface FieldDefinitionpublic DescrFieldDefinition setStatic(Boolean aStatic)
public boolean isFinal()
isFinal in interface FieldDefinitionpublic DescrFieldDefinition setFinal(Boolean aFinal)
public boolean isOverride()
isOverride in interface FieldDefinitionpublic DescrFieldDefinition setOverride(boolean override)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.