[Java] Class LookupResult
- org.codehaus.groovy.control.ClassNodeResolver.LookupResult
Helper class to return either a SourceUnit or ClassNode.
- Authors:
- Jochen "blackdrag" Theodorou
Constructor Summary
Constructor and description |
---|
ClassNodeResolver.LookupResult
(SourceUnit su, ClassNode cn) creates a new LookupResult. |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
ClassNode |
getClassNode() returns the ClassNode | |
SourceUnit |
getSourceUnit() returns the SourceUnit | |
boolean |
isClassNode() returns true if a ClassNode is stored | |
boolean |
isSourceUnit() returns true if a SourecUnit is stored |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public ClassNodeResolver.LookupResult(SourceUnit su, ClassNode cn)
creates a new LookupResult. You are not supposed to supply a SourceUnit and a ClassNode at the same time
Method Detail
public ClassNode getClassNode()
returns the ClassNode
public SourceUnit getSourceUnit()
returns the SourceUnit
public boolean isClassNode()
returns true if a ClassNode is stored
public boolean isSourceUnit()
returns true if a SourecUnit is stored
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/control/ClassNodeResolver.LookupResult.html