public class FieldNode extends AnnotatedNode implements org.objectweb.asm.Opcodes, Variable
Represents a field (member variable)
Type Params | Return Type | Name and description |
---|---|---|
|
public Expression |
getInitialExpression() |
|
public Expression |
getInitialValueExpression() |
|
public int |
getModifiers() |
|
public String |
getName() |
|
public ClassNode |
getOriginType() |
|
public ClassNode |
getOwner() |
|
public ClassNode |
getType() |
|
public boolean |
hasInitialExpression() |
|
public boolean |
isClosureSharedVariable() @deprecated |
|
public boolean |
isDynamicTyped() |
|
public boolean |
isEnum()
|
|
public boolean |
isFinal()
|
|
public boolean |
isHolder() |
|
public boolean |
isInStaticContext() |
|
public boolean |
isPrivate()
|
|
public boolean |
isProtected()
|
|
public boolean |
isPublic()
|
|
public boolean |
isStatic()
|
|
public boolean |
isVolatile()
|
|
public static FieldNode |
newStatic(Class theClass, String name) |
|
public void |
rename(String name) |
|
public void |
setClosureSharedVariable(boolean inClosure) @deprecated |
|
public void |
setHolder(boolean holder) |
|
public void |
setInitialValueExpression(Expression initialValueExpression) |
|
public void |
setModifiers(int modifiers) |
|
public void |
setOriginType(ClassNode cn) |
|
public void |
setOwner(ClassNode owner)
|
|
public void |
setType(ClassNode type) |
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 |
owner
- The owner to set.Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.