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 |
isStatic() |
void |
setCreateAccessors(Boolean createAccessors) |
void |
setFinal(Boolean aFinal) |
void |
setKeyField(Boolean keyField) |
void |
setStatic(Boolean aStatic) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetterAnnotations, 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 void setStatic(Boolean aStatic)
public boolean isFinal()
isFinal in interface FieldDefinitionpublic void setFinal(Boolean aFinal)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.