protected void parseIf ( ) { String condition = tokenizer . getToken ( ) . substring ( 2 ) . trim ( ) ; if ( StringUtil . isEmpty ( condition ) ) { throw new TwoWaySQLException ( "If condition not found." ) ; } IfNode ifNode = new IfNode ( condition ) ; peek ( ) . addChild ( ifNode ) ; push ( ifNode ) ; parseEnd ( ) ; }
Parse an IF node .