public class FieldNode extends AnnotatedNode
Represents a field (member variable)
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            Expression | 
                            getInitialExpression() | 
                        
 | 
                            Expression | 
                            getInitialValueExpression() | 
                        
 | 
                            int | 
                            getModifiers() | 
                        
 | 
                            String | 
                            getName() | 
                        
 | 
                            ClassNode | 
                            getOriginType() | 
                        
 | 
                            ClassNode | 
                            getOwner() | 
                        
 | 
                            ClassNode | 
                            getType() | 
                        
 | 
                            boolean | 
                            hasInitialExpression() | 
                        
 | 
                            boolean | 
                            isClosureSharedVariable()@deprecated  | 
                        
 | 
                            boolean | 
                            isDynamicTyped() | 
                        
 | 
                            boolean | 
                            isEnum()
  | 
                        
 | 
                            boolean | 
                            isFinal()
  | 
                        
 | 
                            boolean | 
                            isHolder() | 
                        
 | 
                            boolean | 
                            isInStaticContext() | 
                        
 | 
                            boolean | 
                            isPrivate()
  | 
                        
 | 
                            boolean | 
                            isProtected()
  | 
                        
 | 
                            boolean | 
                            isPublic()
  | 
                        
 | 
                            boolean | 
                            isStatic()
  | 
                        
 | 
                            boolean | 
                            isVolatile()
  | 
                        
 | 
                            static FieldNode | 
                            newStatic(Class theClass, String name) | 
                        
 | 
                            void | 
                            rename(String name) | 
                        
 | 
                            void | 
                            setClosureSharedVariable(boolean inClosure)@deprecated  | 
                        
 | 
                            void | 
                            setHolder(boolean holder) | 
                        
 | 
                            void | 
                            setInitialValueExpression(Expression initialValueExpression) | 
                        
 | 
                            void | 
                            setModifiers(int modifiers) | 
                        
 | 
                            void | 
                            setOriginType(ClassNode cn) | 
                        
 | 
                            void | 
                            setOwner(ClassNode owner)
  | 
                        
 | 
                            void | 
                            setType(ClassNode type) | 
                        
| Methods inherited from class | Name | 
|---|---|
class AnnotatedNode | 
                            addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic | 
                        
class ASTNode | 
                            copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit | 
                        
owner -  The owner to set.Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.