|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.PropertyNode
public class PropertyNode extends AnnotatedNode
Represents a property (member variable, a getter and setter)
Constructor Summary | |
PropertyNode(java.lang.String name, int modifiers, ClassNode type, ClassNode owner, Expression initialValueExpression, Statement getterBlock, Statement setterBlock)
|
|
PropertyNode(FieldNode field, int modifiers, Statement getterBlock, Statement setterBlock)
|
Method Summary | |
---|---|
FieldNode
|
getField()
|
Statement
|
getGetterBlock()
|
Expression
|
getInitialExpression()
|
int
|
getModifiers()
|
java.lang.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 AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public PropertyNode(java.lang.String name, int modifiers, ClassNode type, ClassNode owner, Expression initialValueExpression, Statement getterBlock, Statement setterBlock)
public PropertyNode(FieldNode field, int modifiers, Statement getterBlock, Statement setterBlock)
Method Detail |
---|
public FieldNode getField()
public Statement getGetterBlock()
public Expression getInitialExpression()
public int getModifiers()
public java.lang.String getName()
public ClassNode getOriginType()
public Statement getSetterBlock()
public ClassNode getType()
public boolean hasInitialExpression()
public boolean isClosureSharedVariable()
public boolean isDynamicTyped()
public boolean isInStaticContext()
public boolean isPrivate()
public boolean isPublic()
public boolean isStatic()
public void setClosureSharedVariable(boolean inClosure)
public void setField(FieldNode fn)
public void setGetterBlock(Statement getterBlock)
public void setSetterBlock(Statement setterBlock)
public void setType(ClassNode t)
Groovy Documentation