Package org.codehaus.groovy.control
Class ClassNodeResolver.LookupResult
java.lang.Object
org.codehaus.groovy.control.ClassNodeResolver.LookupResult
- Enclosing class:
- ClassNodeResolver
public static class ClassNodeResolver.LookupResult
extends java.lang.Object
Helper class to return either a SourceUnit or ClassNode.
- 
Constructor SummaryConstructors Constructor Description LookupResult(SourceUnit su, ClassNode cn)creates a new LookupResult.
- 
Method SummaryModifier and Type Method Description ClassNodegetClassNode()returns the ClassNodeSourceUnitgetSourceUnit()returns the SourceUnitbooleanisClassNode()returns true if a ClassNode is storedbooleanisSourceUnit()returns true if a SourecUnit is storedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
LookupResultcreates a new LookupResult. You are not supposed to supply a SourceUnit and a ClassNode at the same time
 
- 
- 
Method Details- 
isClassNodepublic boolean isClassNode()returns true if a ClassNode is stored
- 
isSourceUnitpublic boolean isSourceUnit()returns true if a SourecUnit is stored
- 
getSourceUnitreturns the SourceUnit
- 
getClassNodereturns the ClassNode
 
-