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, wait
getterAnnotations, overriddenGetterName, overriddenSetterName, setterAnnotations
public DescrFieldDefinition(String fieldName, String objectType, String initExpr)
public DescrFieldDefinition(org.drools.compiler.lang.descr.TypeFieldDescr typeFieldDescr)
public String getFieldName()
getFieldName
in interface FieldDefinition
public String getObjectType()
getObjectType
in interface FieldDefinition
public String getInitExpr()
getInitExpr
in interface FieldDefinition
public List<AnnotationDefinition> getFieldAnnotations()
getFieldAnnotations
in interface FieldDefinition
public void addAnnotation(AnnotationDefinition annotationDefinition)
public void addAnnotation(String name)
public void addPositionAnnotation(int position)
public boolean isKeyField()
isKeyField
in interface FieldDefinition
public void setKeyField(Boolean keyField)
public boolean createAccessors()
createAccessors
in interface FieldDefinition
public void setCreateAccessors(Boolean createAccessors)
public boolean isStatic()
isStatic
in interface FieldDefinition
public void setStatic(Boolean aStatic)
public boolean isFinal()
isFinal
in interface FieldDefinition
public void setFinal(Boolean aFinal)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.