public class SimpleGroovyFieldDoc
extends SimpleGroovyMemberDoc
implements GroovyFieldDoc
Default GroovyFieldDoc implementation.
| Fields inherited from class | Fields |
|---|---|
class SimpleGroovyMemberDoc |
belongsToClass |
class SimpleGroovyDoc |
ANNOTATION_DEF, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF, TRAIT_DEF |
| Constructor and description |
|---|
SimpleGroovyFieldDoc(String name, GroovyClassDoc belongsToClass)Creates a documented field owned by the supplied class. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
constantValue()* Returns the constant value of this field when one is available. * *
|
|
public String |
constantValueExpression()* Returns the source expression used to define the constant value. * *
|
|
public boolean |
isTransient()* Indicates whether this field is declared transient.
*
*
|
|
public boolean |
isVolatile()* Indicates whether this field is declared volatile.
*
*
|
|
public void |
setConstantValueExpression(String constantValueExpression)Stores the source expression used to initialize this field's constant value. |
|
public void |
setType(GroovyType type)Sets the resolved type for this field. |
|
public GroovyType |
type()* Returns the declared type of this field. * *
|
Creates a documented field owned by the supplied class.
name - the field namebelongsToClass - the declaring class* Returns the constant value of this field when one is available. * *
null if none is defined* Returns the source expression used to define the constant value. * *
null if none is available
* Indicates whether this field is declared transient.
*
*
true if this field is transient
* Indicates whether this field is declared volatile.
*
*
true if this field is volatileStores the source expression used to initialize this field's constant value.
constantValueExpression - the constant value expressionSets the resolved type for this field.
type - the field type* Returns the declared type of this field. * *
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.