public SoyPrintDirective lookupPrintDirective ( String name , int numArgs , SourceLocation location ) { SoyPrintDirective soyPrintDirective = printDirectives . get ( name ) ; if ( soyPrintDirective == null ) { reportMissing ( location , "print directive" , name , printDirectives . keySet ( ) ) ; soyPrintDirective = createPlaceholderPrintDirective ( name , numArgs ) ; } checkNumArgs ( "print directive" , soyPrintDirective . getValidArgsSizes ( ) , numArgs , location ) ; warnIfDeprecated ( name , soyPrintDirective , location ) ; return soyPrintDirective ; }
Returns a print directive with the given name and arity .