public String add ( ProcedureDescriptor descriptor ) throws VoltCompilerException { assert descriptor != null ; String className = descriptor . m_className ; assert className != null && ! className . trim ( ) . isEmpty ( ) ; String shortName = deriveShortProcedureName ( className ) ; if ( m_procedureMap . containsKey ( shortName ) ) { throw m_compiler . new VoltCompilerException ( String . format ( "Procedure \"%s\" is already defined" , className ) ) ; } m_procedureMap . put ( shortName , descriptor ) ; return shortName ; }
Tracks the given procedure descriptor if it is not already tracked