public ClassNode lookupClassNodeFor ( String type ) { for ( ClassNode cn : typeCheckingVisitor . getSourceUnit ( ) . getAST ( ) . getClasses ( ) ) { if ( cn . getName ( ) . equals ( type ) ) return cn ; } return null ; }
Lookup a ClassNode by its name from the source unit