W3cubDocs

/Groovy 3.0

[Java] Class PropertyNode

  • org.codehaus.groovy.ast.PropertyNode
All Implemented Interfaces and Traits:
org.objectweb.asm.Opcodes, Variable
public class PropertyNode
extends AnnotatedNode
implements org.objectweb.asm.Opcodes, Variable

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

Constructor Summary

Constructors
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)

Methods Summary

Methods
Type Params Return Type Name and description
public FieldNode getField()
public Statement getGetterBlock()
public Expression getInitialExpression()
public int getModifiers()
public 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)
deprecated:
not used anymore, has no effect
public void setField(FieldNode fn)
public void setGetterBlock(Statement getterBlock)
public void setSetterBlock(Statement setterBlock)
public void setType(ClassNode t)

Inherited Methods Summary

Inherited Methods
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, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit

Constructor Detail

public PropertyNode(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 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()

@Deprecated public void setClosureSharedVariable(boolean inClosure)

deprecated:
not used anymore, has no effect

public void setField(FieldNode fn)

public void setGetterBlock(Statement getterBlock)

public void setSetterBlock(Statement setterBlock)

public void setType(ClassNode t)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/PropertyNode.html