|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Variable
interface to mark a AstNode as Variable. Typically these are VariableExpression, FieldNode, PropertyNode and Parameter
Method Summary | |
---|---|
Expression |
getInitialExpression()
expression used to initialize the variable or null of there is no initialization. |
String |
getName()
the name of the variable |
ClassNode |
getOriginType()
the type before wrapping primitives type of the variable |
ClassNode |
getType()
the type of the variable |
boolean |
hasInitialExpression()
returns true if there is an initialization expression |
boolean |
isClosureSharedVariable()
|
boolean |
isDynamicTyped()
|
boolean |
isInStaticContext()
returns true if this variable is used in a static context. |
void |
setClosureSharedVariable(boolean inClosure)
|
Method Detail |
---|
ClassNode getType()
ClassNode getOriginType()
String getName()
Expression getInitialExpression()
boolean hasInitialExpression()
boolean isInStaticContext()
boolean isDynamicTyped()
boolean isClosureSharedVariable()
void setClosureSharedVariable(boolean inClosure)
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |