public T setSoyDoc ( String soyDoc , SourceLocation soyDocLocation ) { Preconditions . checkState ( this . soyDoc == null ) ; Preconditions . checkState ( cmdText != null ) ; int paramOffset = soyDoc . indexOf ( "@param" ) ; if ( paramOffset != - 1 ) { errorReporter . report ( new RawTextNode ( - 1 , soyDoc , soyDocLocation ) . substringLocation ( paramOffset , paramOffset + "@param" . length ( ) ) , SOYDOC_PARAM ) ; } this . soyDoc = soyDoc ; Preconditions . checkArgument ( soyDoc . startsWith ( "/**" ) && soyDoc . endsWith ( "*/" ) ) ; this . soyDocDesc = cleanSoyDocHelper ( soyDoc ) ; return ( T ) this ; }
Sets the SoyDoc for the node to be built .