@Test public void testConditionTarget() throws Exception { Field field_jj_ntk = class1.getDeclaredField("jj_ntk"); field_jj_ntk.setAccessible(true); Field field_token = class1.getDeclaredField("token"); field_token.setAccessible(true); Token token1 = new Token(); Token token2 = new Token(); token1.next = token2; token2.kind = NEMOparserConstants.ID; token2.image = "1"; field_token.set(class1,token1); field_jj_ntk.set(class1, NEMOparserConstants.ID); Assert.assertTrue(NEMOparser.conditionTarget().containsKey("1")); token2.kind = NEMOparserConstants.TIMEVAL; token2.image = "2"; field_token.set(class1,token1); field_jj_ntk.set(class1, NEMOparserConstants.TIMEVAL); Assert.assertTrue(NEMOparser.conditionTarget().containsKey("2")); token2.kind = NEMOparserConstants.FULLTIME; token2.image = "3"; field_token.set(class1,token1); field_jj_ntk.set(class1, NEMOparserConstants.FULLTIME); Assert.assertTrue(NEMOparser.conditionTarget().containsKey("3")); token2.kind = NEMOparserConstants.UNUMBER; token2.image = "4"; field_token.set(class1,token1); field_jj_ntk.set(class1, NEMOparserConstants.UNUMBER); Assert.assertTrue(NEMOparser.conditionTarget().containsKey("4")); Token token = new Token(); Token token_LPAREN = new Token(); Token token_UNUMBER = new Token(); Token token_COMMA = new Token(); Token token_UNUMBER1 = new Token(); Token token_RPAREN = new Token(); token.next = token_LPAREN; token_LPAREN.next = token_UNUMBER; token_UNUMBER.next = token_COMMA; token_COMMA.next = token_UNUMBER1; token_UNUMBER1.next = token_RPAREN; token_RPAREN.next = null; token_LPAREN.kind = NEMOparserConstants.LPAREN; token_UNUMBER.kind = token_UNUMBER1.kind = NEMOparserConstants.UNUMBER; token_COMMA.kind = NEMOparserConstants.COMMA; token_RPAREN.kind = NEMOparserConstants.RPAREN; token_UNUMBER.image = "zhangmeng"; token_UNUMBER.image = "zhangyuanyuan"; field_token.set(class1,token); field_jj_ntk.set(class1, NEMOparserConstants.LPAREN); Assert.assertTrue(NEMOparser.conditionTarget().containsValue("range")); }
static final public LinkedHashMap<String,String> conditionTarget() throws ParseException { Token objCondTarget = null; Token objRangeLeft = null; Token objRangeRight = null; LinkedHashMap<String,String> targetValue = new LinkedHashMap<String,String>(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objCondTarget = jj_consume_token(ID); targetValue.put(objCondTarget.image,"string"); break; case TIMEVAL: objCondTarget = jj_consume_token(TIMEVAL); targetValue.put(objCondTarget.image,"string"); break; case FULLTIME: objCondTarget = jj_consume_token(FULLTIME); targetValue.put(objCondTarget.image,"string"); break; case UNUMBER: objCondTarget = jj_consume_token(UNUMBER); targetValue.put(objCondTarget.image,"integer"); break; case LPAREN: jj_consume_token(LPAREN); objRangeLeft = jj_consume_token(UNUMBER); jj_consume_token(COMMA); objRangeRight = jj_consume_token(UNUMBER); jj_consume_token(RPAREN); targetValue.put(objRangeLeft.image+","+objRangeRight.image,"range"); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return targetValue;} throw new Error("Missing return statement in function"); }
NEMOparser implements NEMOparserConstants { static final public LinkedHashMap<String,String> conditionTarget() throws ParseException { Token objCondTarget = null; Token objRangeLeft = null; Token objRangeRight = null; LinkedHashMap<String,String> targetValue = new LinkedHashMap<String,String>(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objCondTarget = jj_consume_token(ID); targetValue.put(objCondTarget.image,"string"); break; case TIMEVAL: objCondTarget = jj_consume_token(TIMEVAL); targetValue.put(objCondTarget.image,"string"); break; case FULLTIME: objCondTarget = jj_consume_token(FULLTIME); targetValue.put(objCondTarget.image,"string"); break; case UNUMBER: objCondTarget = jj_consume_token(UNUMBER); targetValue.put(objCondTarget.image,"integer"); break; case LPAREN: jj_consume_token(LPAREN); objRangeLeft = jj_consume_token(UNUMBER); jj_consume_token(COMMA); objRangeRight = jj_consume_token(UNUMBER); jj_consume_token(RPAREN); targetValue.put(objRangeLeft.image+","+objRangeRight.image,"range"); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return targetValue;} throw new Error("Missing return statement in function"); } }
NEMOparser implements NEMOparserConstants { static final public LinkedHashMap<String,String> conditionTarget() throws ParseException { Token objCondTarget = null; Token objRangeLeft = null; Token objRangeRight = null; LinkedHashMap<String,String> targetValue = new LinkedHashMap<String,String>(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objCondTarget = jj_consume_token(ID); targetValue.put(objCondTarget.image,"string"); break; case TIMEVAL: objCondTarget = jj_consume_token(TIMEVAL); targetValue.put(objCondTarget.image,"string"); break; case FULLTIME: objCondTarget = jj_consume_token(FULLTIME); targetValue.put(objCondTarget.image,"string"); break; case UNUMBER: objCondTarget = jj_consume_token(UNUMBER); targetValue.put(objCondTarget.image,"integer"); break; case LPAREN: jj_consume_token(LPAREN); objRangeLeft = jj_consume_token(UNUMBER); jj_consume_token(COMMA); objRangeRight = jj_consume_token(UNUMBER); jj_consume_token(RPAREN); targetValue.put(objRangeLeft.image+","+objRangeRight.image,"range"); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return targetValue;} throw new Error("Missing return statement in function"); } NEMOparser(java.io.InputStream stream);  NEMOparser(java.io.InputStream stream, String encoding);  NEMOparser(java.io.Reader stream);  NEMOparser(NEMOparserTokenManager tm); }
NEMOparser implements NEMOparserConstants { static final public LinkedHashMap<String,String> conditionTarget() throws ParseException { Token objCondTarget = null; Token objRangeLeft = null; Token objRangeRight = null; LinkedHashMap<String,String> targetValue = new LinkedHashMap<String,String>(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objCondTarget = jj_consume_token(ID); targetValue.put(objCondTarget.image,"string"); break; case TIMEVAL: objCondTarget = jj_consume_token(TIMEVAL); targetValue.put(objCondTarget.image,"string"); break; case FULLTIME: objCondTarget = jj_consume_token(FULLTIME); targetValue.put(objCondTarget.image,"string"); break; case UNUMBER: objCondTarget = jj_consume_token(UNUMBER); targetValue.put(objCondTarget.image,"integer"); break; case LPAREN: jj_consume_token(LPAREN); objRangeLeft = jj_consume_token(UNUMBER); jj_consume_token(COMMA); objRangeRight = jj_consume_token(UNUMBER); jj_consume_token(RPAREN); targetValue.put(objRangeLeft.image+","+objRangeRight.image,"range"); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return targetValue;} throw new Error("Missing return statement in function"); } NEMOparser(java.io.InputStream stream);  NEMOparser(java.io.InputStream stream, String encoding);  NEMOparser(java.io.Reader stream);  NEMOparser(NEMOparserTokenManager tm); String parseNEMO(UserId userId,String strNEMO, DataBroker dataBroker, TenantManage tenantManage); static final String NEMO(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String NodeModel(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String abstractNode(UpdateTemplateDefinitionLang definition); static final String abstractConnection(UpdateTemplateDefinitionLang definition); static final String abstractFlow(UpdateTemplateDefinitionLang definition); static final String abstractOperation(UpdateTemplateDefinitionLang definition); static final String DeleteNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String Query(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final LinkedHashMap<String,String> conditionTarget(); static final LinkedHashMap<String,String> property(); static final LinkedHashMap<String,String> nodeMultiProperty(); static void ReInit(java.io.InputStream stream); static void ReInit(java.io.InputStream stream, String encoding); static void ReInit(java.io.Reader stream); void ReInit(NEMOparserTokenManager tm); static final Token getNextToken(); static final Token getToken(int index); static ParseException generateParseException(); static final void enable_tracing(); static final void disable_tracing(); }
NEMOparser implements NEMOparserConstants { static final public LinkedHashMap<String,String> conditionTarget() throws ParseException { Token objCondTarget = null; Token objRangeLeft = null; Token objRangeRight = null; LinkedHashMap<String,String> targetValue = new LinkedHashMap<String,String>(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objCondTarget = jj_consume_token(ID); targetValue.put(objCondTarget.image,"string"); break; case TIMEVAL: objCondTarget = jj_consume_token(TIMEVAL); targetValue.put(objCondTarget.image,"string"); break; case FULLTIME: objCondTarget = jj_consume_token(FULLTIME); targetValue.put(objCondTarget.image,"string"); break; case UNUMBER: objCondTarget = jj_consume_token(UNUMBER); targetValue.put(objCondTarget.image,"integer"); break; case LPAREN: jj_consume_token(LPAREN); objRangeLeft = jj_consume_token(UNUMBER); jj_consume_token(COMMA); objRangeRight = jj_consume_token(UNUMBER); jj_consume_token(RPAREN); targetValue.put(objRangeLeft.image+","+objRangeRight.image,"range"); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return targetValue;} throw new Error("Missing return statement in function"); } NEMOparser(java.io.InputStream stream);  NEMOparser(java.io.InputStream stream, String encoding);  NEMOparser(java.io.Reader stream);  NEMOparser(NEMOparserTokenManager tm); String parseNEMO(UserId userId,String strNEMO, DataBroker dataBroker, TenantManage tenantManage); static final String NEMO(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String NodeModel(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String abstractNode(UpdateTemplateDefinitionLang definition); static final String abstractConnection(UpdateTemplateDefinitionLang definition); static final String abstractFlow(UpdateTemplateDefinitionLang definition); static final String abstractOperation(UpdateTemplateDefinitionLang definition); static final String DeleteNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String Query(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final LinkedHashMap<String,String> conditionTarget(); static final LinkedHashMap<String,String> property(); static final LinkedHashMap<String,String> nodeMultiProperty(); static void ReInit(java.io.InputStream stream); static void ReInit(java.io.InputStream stream, String encoding); static void ReInit(java.io.Reader stream); void ReInit(NEMOparserTokenManager tm); static final Token getNextToken(); static final Token getToken(int index); static ParseException generateParseException(); static final void enable_tracing(); static final void disable_tracing(); static public NEMOparserTokenManager token_source; static public Token token; static public Token jj_nt; }