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 | 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, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.