public class PropertyNode extends AnnotatedNode
Represents a property (member variable, a getter and setter)
Constructor and description |
---|
PropertyNode
(String name, int modifiers, ClassNode type, ClassNode owner, Expression initialValueExpression, Statement getterBlock, Statement setterBlock) |
PropertyNode
(FieldNode field, int modifiers, Statement getterBlock, Statement setterBlock) |
Type Params | Return Type | Name and description |
---|---|---|
|
FieldNode |
getField() |
|
Statement |
getGetterBlock() |
|
Expression |
getInitialExpression() |
|
int |
getModifiers() |
|
String |
getName() |
|
ClassNode |
getOriginType() |
|
Statement |
getSetterBlock() |
|
ClassNode |
getType() |
|
boolean |
hasInitialExpression() |
|
boolean |
isClosureSharedVariable() |
|
boolean |
isDynamicTyped() |
|
boolean |
isInStaticContext() |
|
boolean |
isPrivate() |
|
boolean |
isPublic() |
|
boolean |
isStatic() |
|
void |
setClosureSharedVariable(boolean inClosure)
|
|
void |
setField(FieldNode fn) |
|
void |
setGetterBlock(Statement getterBlock) |
|
void |
setSetterBlock(Statement setterBlock) |
|
void |
setType(ClassNode t) |
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 |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.