Package org.codehaus.groovy.control
Class ClassNodeResolver.LookupResult
java.lang.Object
org.codehaus.groovy.control.ClassNodeResolver.LookupResult
- Enclosing class:
- ClassNodeResolver
Helper class to return either a SourceUnit or ClassNode.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturns the ClassNodereturns the SourceUnitboolean
returns true if a ClassNode is storedboolean
returns true if a SourceUnit is stored
-
Constructor Details
-
LookupResult
creates a new LookupResult. You are not supposed to supply a SourceUnit and a ClassNode at the same time
-
-
Method Details
-
isClassNode
public boolean isClassNode()returns true if a ClassNode is stored -
isSourceUnit
public boolean isSourceUnit()returns true if a SourceUnit is stored -
getSourceUnit
returns the SourceUnit -
getClassNode
returns the ClassNode
-