public class PropertyNode extends AnnotatedNode
Represents a property (member variable, a getter and setter)
Type | Name and description |
---|---|
boolean |
closureSharedVariable |
FieldNode |
field |
Statement |
getterBlock |
Statement |
setterBlock |
ClassNode |
type |
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) @deprecated not used anymore, has no effect |
|
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, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.