question: public static RowLimitSpec buildRowLimitSpec ( EsperEPL2GrammarParser . RowLimitContext ctx ) { Object numRows ; Object offset ; if ( ctx . o != null ) { numRows = parseNumOrVariableIdent ( ctx . n1 , ctx . i1 ) ; offset = parseNumOrVariableIdent ( ctx . n2 , ctx . i2 ) ; } else if ( ctx . c != null ) { offset = parseNumOrVariableIdent ( ctx . n1 , ctx . i1 ) ; numRows = parseNumOrVariableIdent ( ctx . n2 , ctx . i2 ) ; } else { numRows = parseNumOrVariableIdent ( ctx . n1 , ctx . i1 ) ; offset = null ; } Integer numRowsInt = null ; String numRowsVariable = null ; if ( numRows instanceof String ) { numRowsVariable = ( String ) numRows ; } else { numRowsInt = ( Integer ) numRows ; } Integer offsetInt = null ; String offsetVariable = null ; if ( offset instanceof String ) { offsetVariable = ( String ) offset ; } else { offsetInt = ( Integer ) offset ; } return new RowLimitSpec ( numRowsInt , offsetInt , numRowsVariable , offsetVariable ) ; }
target:  Builds a row limit specification.