Logo Search packages:      
Sourcecode: japitools version File versions  Download package

Type net::wuffies::japi::Type::bindWithFallback ( ClassType  t  )  [inline, inherited]

Return the result of bind(t), except that in the case of an unbound type parameter (where bind() would return null), return the result of binding the primary constraint instead (which is a ClassType and cannot itself result in null when bound). (The implementation in Type throws if bind() returns null; this method is overridden in TypeParam which is the only subclass that actually returns null from bind()).

Definition at line 79 of file Type.java.

    Type result = bind(t);
    if (result == null) throw new NullPointerException("bind() resulted in null, unhandled");
    return result;

Generated by  Doxygen 1.6.0   Back to index