Groovy 1.7.0

## org.codehaus.groovy.ast
Class PropertyNode

    java.lang.Object
      org.codehaus.groovy.ast.ASTNode
          org.codehaus.groovy.ast.AnnotatedNode
              org.codehaus.groovy.ast.PropertyNode

All Implemented Interfaces:
  org.objectweb.asm.Opcodes

    class PropertyNode
    extends AnnotatedNode

Represents a property (member variable, a getter and setter)

author:
  James Strachan

version:
  $Revision: 13649 $

Constructor Summary
`PropertyNode(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()`
`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, isSynthetic, setDeclaringClass, setSynthetic

Methods inherited from class ASTNode
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition, visit

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### PropertyNode

    public PropertyNode(String name, int modifiers, ClassNode type, ClassNode owner, Expression initialValueExpression, Statement getterBlock, Statement setterBlock)

### PropertyNode

    public PropertyNode(FieldNode field, int modifiers, Statement getterBlock, Statement setterBlock)

Method Detail

### getField

    public FieldNode getField()

### getGetterBlock

    public Statement getGetterBlock()

### getInitialExpression

    public Expression getInitialExpression()

### getModifiers

    public int getModifiers()

### getName

    public String getName()

### getOriginType

    public ClassNode getOriginType()

### getSetterBlock

    public Statement getSetterBlock()

### getType

    public ClassNode getType()

### hasInitialExpression

    public boolean hasInitialExpression()

### isClosureSharedVariable

    public boolean isClosureSharedVariable()

### isDynamicTyped

    public boolean isDynamicTyped()

### isInStaticContext

    public boolean isInStaticContext()

### isPrivate

    public boolean isPrivate()

### isPublic

    public boolean isPublic()

### isStatic

    public boolean isStatic()

### setClosureSharedVariable

    public void setClosureSharedVariable(boolean inClosure)

### setField

    public void setField(FieldNode fn)

### setGetterBlock

    public void setGetterBlock(Statement getterBlock)

### setSetterBlock

    public void setSetterBlock(Statement setterBlock)

### setType

    public void setType(ClassNode t)

Copyright © 2003-2009 The Codehaus. All rights reserved.